Update dependency org.jenkins-ci.plugins:plugin to v5.3 (#408) #793
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: 'Generate Coverage Report' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
name: Coverage on Ubuntu | |
steps: | |
- name: Set up JDK 17 and Maven | |
uses: s4u/setup-maven-action@v1.16.0 | |
with: | |
java-distribution: 'temurin' | |
java-version: '17' | |
- name: Generate coverage with JaCoCo | |
run: mvn clean jacoco:prepare-agent test jacoco:report | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./target/site/jacoco/jacoco.xml |