JBEHAVE-1593 Update CI to use JDK 21
instead of 20
#709
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: JBehave CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ ubuntu-latest, macos-latest ] | |
java: [ 8, 11, 17, 21 ] | |
fail-fast: false | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Build | |
if: matrix.java == 8 | |
shell: bash | |
run: ./mvnw install -s settings.xml -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode -e --quiet | |
- name: Build | |
if: matrix.java != 8 | |
shell: bash | |
run: ./mvnw install -s settings.xml -P examples --batch-mode -e |