Merge pull request #942 from MarkEWaite/move-forkCount-to-Jenkinsfile #1
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: | |
- master | |
- main | |
pull_request: | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
name: Coverage on Ubuntu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
check-latest: true | |
- name: Generate coverage with JaCoCo | |
run: mvn -V --color always -ntp clean verify --file pom.xml '-Dgpg.skip' | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: 'target/site/jacoco/jacoco.xml' | |
token: ${{secrets.CODECOV_TOKEN}} |