diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index a756df6..a92c716 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -46,6 +46,13 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./build/reports/jacoco/test/jacocoTestReport.xml + flags: unittests + name: codecov-umbrella - name: Functional Tests run: make testFunctional diff --git a/README.md b/README.md index 6e0530a..581e02d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ [![Actions Status](https://github.com/fishey2/java-component-template/workflows/Java%20CI/badge.svg)](https://github.com/fishey2/java-component-template/actions) +## CodeCov Overall + +[![codecov](https://codecov.io/gh/fishey2/java-component-template/branch/with_codecov/graph/badge.svg)](https://codecov.io/gh/fishey2/java-component-template) + ## SonarCloud Overall [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fishey2_java-component-template&metric=alert_status)](https://sonarcloud.io/dashboard?id=fishey2_java-component-template)