Skip to content

Commit

Permalink
Merge pull request #24 from kinde-oss/test/coveragereport
Browse files Browse the repository at this point in the history
Add Codecov reporting
  • Loading branch information
DanielRivers authored Sep 26, 2024
2 parents 90a2a13 + 093d4fc commit cb1ffbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
Expand All @@ -29,5 +28,14 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Run tests
run: mvn test

- name: Run tests and collect coverage
working-directory: ./kinde-core
run: mvn jacoco:report

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: '**/target/site/jacoco/jacoco.xml'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit cb1ffbb

Please sign in to comment.