Skip to content

Bump the github-actions group with 3 updates (#104) #75

Bump the github-actions group with 3 updates (#104)

Bump the github-actions group with 3 updates (#104) #75

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: 'ubuntu-22.04'
strategy:
fail-fast: false
matrix:
# Alas, JDK14 can't be yet used while build is for Java 6
java_version: ['8', '11', '17']
env:
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up JDK
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
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@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./target/site/jacoco/jacoco.xml
flags: unittests