Skip to content

Commit

Permalink
Test coverage: add workflow & badge. Close #6
Browse files Browse the repository at this point in the history
  • Loading branch information
DaJaime committed Sep 12, 2024
1 parent 2d73097 commit ed4fd2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ jobs:
# Test project
- name: Run tests
run: ./gradlew test

# Upload JaCoCo coverage report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./build/reports/jacoco/test/jacocoTestReport.xml
fail_ci_if_error: true
verbose: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# template-java-API

[![Java CI Gradle build and test](https://github.com/DaJaime/template-java-API/actions/workflows/gradle-build.yml/badge.svg?branch=main)](https://github.com/DaJaime/template-java-API/actions/workflows/gradle-build.yml)
[![Java CI Gradle build and test](https://github.com/DaJaime/template-java-API/actions/workflows/gradle-build.yml/badge.svg?branch=main)](https://github.com/DaJaime/template-java-API/actions/workflows/gradle-build.yml)
[![codecov](https://codecov.io/gh/DaJaime/template-java-API/graph/badge.svg?token=JCB7CC5FWP)](https://codecov.io/gh/DaJaime/template-java-API)

0 comments on commit ed4fd2e

Please sign in to comment.