Skip to content

Commit 1b25989

Browse files
committed
add coverage report
1 parent d9b8cef commit 1b25989

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,16 @@ jobs:
5959

6060
- name: Build and test
6161
run: mvn -B install --file pom.xml
62+
63+
- name: Generate JaCoCo Badge
64+
if: ${{ github.ref == 'refs/heads/master' && matrix.java == 17 }}
65+
uses: cicirello/jacoco-badge-generator@v2
66+
with:
67+
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
68+
badges-directory: build/reports/jacoco/test/html/badges
69+
70+
- name: Publish coverage report to GitHub Pages
71+
if: ${{ github.ref == 'refs/heads/master' && matrix.java == 17 }}
72+
uses: JamesIves/github-pages-deploy-action@v4
73+
with:
74+
folder: build/reports/jacoco/test/html

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
44
[![Java](https://img.shields.io/badge/java-%3E%3D17-brightgreen)](https://openjdk.org/)
55
[![Build](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/build.yml/badge.svg)](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/build.yml)
6+
[![Coverage](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/coverage.yml/badge.svg)](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/coverage.yml)
67
[![E2E Tests](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/e2e-tests.yml/badge.svg)](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/e2e-tests.yml)
78
[![CodeQL](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/github-code-scanning/codeql)
89
[![Spotless](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/check-spotless.yml/badge.svg)](https://github.com/aws/aws-durable-execution-sdk-java/actions/workflows/check-spotless.yml)

0 commit comments

Comments
 (0)