chore(deps): update mikepenz/action-junit-report action to v5 #288
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
env: | |
# https://github.com/actions/virtual-environments/issues/1499 | |
MAVEN_CLI_OPTS: '-ntp --batch-mode --errors --fail-at-end --show-version -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3 -Dstyle.color=always' | |
on: | |
# allow to manual run the action | |
workflow_dispatch: {} | |
pull_request: {} | |
merge_group: {} | |
push: | |
branches: | |
- develop | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
# For junit report | |
checks: write | |
pull-requests: write | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Build with Maven | |
run: | | |
./mvnw ${MAVEN_CLI_OPTS} clean verify | |
./mvnw javadoc:javadoc | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v5 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/target/*-reports/TEST-*.xml' | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: "${{ github.workspace }}/spi/target/jacoco.xml" | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: ${{ !startsWith(github.event.ref, 'refs/tags/v') }} |