Skip to content

[maven-release-plugin] prepare for next development iteration #160

[maven-release-plugin] prepare for next development iteration

[maven-release-plugin] prepare for next development iteration #160

Workflow file for this run

name: Build
on:
push:
branches:
- master
- "4.3"
- "3.0"
paths-ignore:
- "README.md"
- "release-notes/*"
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: ['8', '11', '17', '21']
os: ['ubuntu-20.04']
env:
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: "temurin"
java-version: ${{ matrix.java_version }}
cache: 'maven'
- 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@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./target/site/jacoco/jacoco.xml
flags: unittests