Add JDK 17 and 21 to the test matrix #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.gitignore' | |
- 'README.md' | |
pull_request: | |
paths-ignore: | |
- '.gitignore' | |
- 'README.md' | |
jobs: | |
build: | |
name: Linux-${{ matrix.jdk }} | |
runs-on: 'ubuntu-latest' | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: [11, 17, 21] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.jdk }} | |
distribution: 'adopt' | |
cache: maven | |
- name: Build and test | |
run: mvn clean install | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: surefire-reports | |
path: '**/surefire-reports/*.txt' | |