Skip to content

Upgrade to Java 21 and Spring Boot 3.2.12 (#201) #1671

Upgrade to Java 21 and Spring Boot 3.2.12 (#201)

Upgrade to Java 21 and Spring Boot 3.2.12 (#201) #1671

Workflow file for this run

name: Java CI
on: [push, pull_request]
jobs:
test:
name: Package and run all tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Init Coveralls
shell: bash
run: |
COVERALLS_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}
if [[ -z "${COVERALLS_TOKEN}" ]]
then
echo "Coveralls token not available"
COVERALLS_SKIP=true
else
echo "Coveralls token available"
COVERALLS_SKIP=false
fi
echo "COVERALLS_SKIP=${COVERALLS_SKIP}" >> $GITHUB_ENV
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '21'
java-package: jdk
- name: Run Maven Package
run: mvn package jacoco:report coveralls:report --batch-mode --show-version --no-transfer-progress --activate-profiles coveralls -Dcoveralls.skip=$COVERALLS_SKIP -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }}