Upgrading to Java 23 #194
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: Java CI | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '.github/workflows/doc.yml' | |
- '.github/workflows/version_update.yml' | |
- 'ci/doc/**' | |
- 'create.sh' | |
- 'LICENSE' | |
- 'README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout submodules | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: advent-of-code-inputs | |
repository: zodac/advent-of-code-inputs | |
token: ${{ secrets.SUBMODULE_ACCESS }} | |
- name: Set up JDK | |
uses: actions/setup-java@v4.2.1 | |
with: | |
cache: 'maven' | |
distribution: 'temurin' | |
java-version: '23' | |
- name: Cache local .m2 | |
uses: actions/cache@v4.0.2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**.pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Setup Maven Action | |
uses: s4u/setup-maven-action@v1.14.0 | |
with: | |
java-distribution: 'temurin' | |
java-version: '23' | |
maven-version: '3.9.9' | |
- name: Run lints and test with Maven (including SonarQube) | |
env: | |
SONARQUBE_PAT: ${{ secrets.SONARQUBE_PAT }} | |
run: mvn clean install -Dall -Dsonarqube |