Update baseline to Java 21 #415
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: JDK21 Build and Test | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup timezone | |
uses: zcong1993/setup-timezone@f28e5fb1ca95077c81b67be53bcd1923de2175ed | |
with: | |
timezone: Europe/London | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21 | |
distribution: zulu | |
# Step that does that actual cache save and restore | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: mvn -T3 -B test --file pom.xml | |
- name: Publish Test Report | |
if: ${{ always() }} | |
uses: scacap/action-surefire-report@v1 |