Setup matrix so multiple java versions are tested.

This commit is contained in:
Speiger 2022-04-07 13:27:12 +02:00
parent ca38583f96
commit 9499a7f0e0
1 changed files with 5 additions and 2 deletions

View File

@ -15,15 +15,18 @@ on:
jobs: jobs:
build: build:
strategy:
matrix:
jdk: [8, 11, 14, 16, 17]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up JDK 11 - name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: '11' java-version: ${{ matrix.jdk }}
distribution: 'adopt' distribution: 'adopt'
cache: gradle cache: gradle
- name: Validate Gradle wrapper - name: Validate Gradle wrapper