From 62ccf132dc5ac0ab24d6d91530b01b8996c2488f Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Tue, 10 Sep 2019 19:02:45 -0700 Subject: [PATCH] Add Github Actions workflow gradle.yml Use Github Actions built-in Gradle 5.6.2 Github Actions virtual environments all include a pre-installed Gradle that is 5.6 or later, so we can just build with it without using the wrapper. --- .github/workflow/gradle.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflow/gradle.yml diff --git a/.github/workflow/gradle.yml b/.github/workflow/gradle.yml new file mode 100644 index 00000000000..050a2844fc2 --- /dev/null +++ b/.github/workflow/gradle.yml @@ -0,0 +1,22 @@ +name: Java CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + # windows-latest currently fails on some tests + os: [ubuntu-latest, macOS-latest, windows-latest] + java: [ '8', '11' ] + fail-fast: false + name: JAVA ${{ matrix.java }} OS ${{ matrix.os }} + steps: + - uses: actions/checkout@v1 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build with Gradle + run: gradle build --stacktrace