Skip to content

Bump actions/setup-java from 4.2.1 to 4.2.2 in the github-actions group #54

Bump actions/setup-java from 4.2.1 to 4.2.2 in the github-actions group

Bump actions/setup-java from 4.2.1 to 4.2.2 in the github-actions group #54

Workflow file for this run

name: Build
on:
push:
branches:
- master
- "1.6"
paths-ignore:
- "README.md"
- "release-notes/*"
pull_request:
branches:
- master
- "1.6"
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Alas, JDK14 can't be yet used while build is for Java 6
java_version: ['8', '11', '17']
os: ['ubuntu-20.04']
env:
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: "temurin"
java-version: ${{ matrix.java_version }}
cache: 'maven'
- name: Build
run: ./mvnw -B -ff -ntp clean 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@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./target/site/jacoco/jacoco.xml
flags: unittests