Skip to content

Commit

Permalink
Add Github Actions workflow gradle.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
msgilligan committed Oct 2, 2019
1 parent cc445b8 commit 62ccf13
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflow/gradle.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 62ccf13

Please sign in to comment.