From f4b107d463117a6b7205b9af17b4fd830469579c Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 30 Nov 2021 03:17:08 -0800 Subject: [PATCH] Setup GitHub actions for build checks --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4710916 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build +on: [ push, pull_request ] + +jobs: + build: + # Only run on PRs if the source branch is on someone else's repo + if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 8, 11, 17 ] + fail-fast: true + steps: + - uses: actions/checkout@v2.3.5 + - uses: gradle/wrapper-validation-action@v1 + - name: JDK ${{ matrix.java }} + uses: actions/setup-java@v2.3.1 + with: + java-version: ${{ matrix.java }} + cache: 'gradle' + distribution: 'temurin' + - name: build + run: ./gradlew build --stacktrace diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c686e38..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: false -dist: bionic - -language: java -jdk: - - openjdk8 - - openjdk11 - -install: true -script: ./gradlew build - -notifications: - email: false