-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Java 21 when generating the coverage.
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'Generate coverage report' | ||
name: 'CodeCov' | ||
|
||
on: | ||
push: | ||
|
@@ -11,20 +11,25 @@ jobs: | |
coverage: | ||
|
||
runs-on: ubuntu-latest | ||
name: Coverage on Ubuntu | ||
name: Create and upload coverage report | ||
|
||
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/[email protected] | ||
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@v3 | ||
uses: codecov/codecov-action@v3.1.4 | ||
with: | ||
files: 'target/site/jacoco/jacoco.xml' | ||
token: ${{secrets.CODECOV_TOKEN}} |