summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-18 01:29:07 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-18 01:29:17 +0200
commit0e3eab1ff35b5fe83eb6ced3330eb3666047068b (patch)
tree360c6ed5fa1c9d87202e19e455603bf04738c922 /.github
parentMove unused resources from server to archive (diff)
downloadseven-wonders-0e3eab1ff35b5fe83eb6ced3330eb3666047068b.tar.gz
seven-wonders-0e3eab1ff35b5fe83eb6ced3330eb3666047068b.tar.bz2
seven-wonders-0e3eab1ff35b5fe83eb6ced3330eb3666047068b.zip
Add github actions build
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..951e3acd
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI Build
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 13
+ uses: actions/setup-java@v1.3.0
+ with:
+ java-version: 13
+
+ - name: Gradle build cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
+ restore-keys: ${{ runner.os }}-gradle-build-
+
+ - name: Gradle wrapper cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}
+
+ - name: Build with Gradle
+ run: ./gradlew build
+
+# When Travis CI doesn't publish on tags anymore:
+
+# publish:
+# needs: build
+# if: startsWith(github.ref, 'refs/tags/')
+# steps:
+# - name: Publish to Bintray
+# run: ./gradlew bintrayUpload
bgstack15