Skip to content

Commit

Permalink
Use same configuration for all CodeCov pipelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Apr 5, 2024
1 parent 584e176 commit 50cbf0d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '21'
check-latest: true
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Generate coverage with JaCoCo
run: mvn -V --color always -ntp clean verify --file pom.xml '-Dgpg.skip'
run: mvn -V --color always -ntp clean verify '-Dgpg.skip'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v4.1.1
with:
files: 'target/site/jacoco/jacoco.xml'
token: ${{secrets.CODECOV_TOKEN}}

0 comments on commit 50cbf0d

Please sign in to comment.