Run CI on both Java 11 and 17.

This commit is contained in:
FireMaskterK 2021-10-31 18:05:04 +00:00
parent 0d0cb24a6f
commit 8eff8a26e7
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -9,14 +9,17 @@ on:
jobs: jobs:
build-and-test: build-and-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17]
steps: steps:
- uses: actions/checkout@v2.3.5 - uses: actions/checkout@v2.3.5
- name: set up JDK 11 - name: set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
java-version: 11 java-version: ${{ matrix.java }}
distribution: 'adopt-openj9' distribution: temurin
check-latest: true check-latest: true
- name: Cache Gradle dependencies - name: Cache Gradle dependencies