Skip to content

Commit

Permalink
Create codecov.yml
Browse files Browse the repository at this point in the history
enable codecov coverage report
  • Loading branch information
tilalx authored Jun 17, 2024
1 parent 20d7a40 commit e0355a1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Generate Coverage Report'

on:
push:
branches:
- master
pull_request:

jobs:
coverage:
runs-on: ubuntu-latest
name: Coverage on Ubuntu
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
cache: 'maven'
- name: Generate coverage with JaCoCo
run: mvn clean verify jacoco:prepare-agent test integration-test jacoco:report

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./target/site/jacoco/jacoco.xml

0 comments on commit e0355a1

Please sign in to comment.