2021-01-05 05:31:07 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
2021-10-31 18:05:04 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-02-22 09:16:45 +00:00
|
|
|
java: [ 11, 17 ]
|
2021-01-05 05:31:07 +00:00
|
|
|
steps:
|
2021-11-03 13:05:26 +00:00
|
|
|
- uses: actions/checkout@v2.4.0
|
2021-01-05 05:31:07 +00:00
|
|
|
|
2021-10-31 18:05:04 +00:00
|
|
|
- name: set up JDK ${{ matrix.java }}
|
2021-04-06 07:27:39 +00:00
|
|
|
uses: actions/setup-java@v2
|
2021-01-05 05:31:07 +00:00
|
|
|
with:
|
2021-10-31 18:05:04 +00:00
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
distribution: temurin
|
2021-04-06 07:27:39 +00:00
|
|
|
check-latest: true
|
2021-10-31 18:51:45 +00:00
|
|
|
cache: "gradle"
|
2021-01-05 05:34:52 +00:00
|
|
|
- name: Run Build
|
2022-02-22 09:16:45 +00:00
|
|
|
run: ./gradlew build
|