Skip to content

Bump actions/checkout from 5.0.0 to 6.0.0 in the github-actions group… #208

Bump actions/checkout from 5.0.0 to 6.0.0 in the github-actions group…

Bump actions/checkout from 5.0.0 to 6.0.0 in the github-actions group… #208

Workflow file for this run

name: Build
on:
push:
branches:
- main
- "4.3"
- "3.0"
paths-ignore:
- "README.md"
- "release-notes/*"
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
java_version: ['8', '11', '17', '21']
env:
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Set up JDK
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
distribution: "temurin"
java-version: ${{ matrix.java_version }}
cache: 'maven'
server-id: central-snapshots
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
- name: Build
run: ./mvnw -B -q -ff -ntp verify
- name: Generate code coverage
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
run: ./mvnw -B -q -ff -ntp test
- name: Publish code coverage
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./target/site/jacoco/jacoco.xml
flags: unittests