Skip to content

Commit

Permalink
Use Java 21 when generating the coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 12, 2024
1 parent 926c061 commit 51a9cbe
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Generate coverage report'
name: 'CodeCov'

on:
push:
Expand All @@ -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/setup-maven@v4.5
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}}

0 comments on commit 51a9cbe

Please sign in to comment.