Skip to content

Upgrade to Java 21 and Spring Boot 3.5.16, with tests, CI and Java 21 modernization #20

Upgrade to Java 21 and Spring Boot 3.5.16, with tests, CI and Java 21 modernization

Upgrade to Java 21 and Spring Boot 3.5.16, with tests, CI and Java 21 modernization #20

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
# No marketplace actions are used here on purpose: runners for this repository cannot
# resolve them ("Failed to resolve action download info. Error: Service Unavailable"),
# so actions/checkout and actions/setup-java fail before the job body ever runs.
# Checkout is done with git directly, and the runner image already ships JDK 21.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git init -q .
git remote add origin "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.git"
git fetch -q --depth 1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: Build and test on JDK 21
run: |
export JAVA_HOME="$JAVA_HOME_21_X64"
export PATH="$JAVA_HOME/bin:$PATH"
java -version
./mvnw -B clean verify