Skip to content

Commit c9e17b3

Browse files
committed
Fixing Test Coverage
1 parent 2458d1d commit c9e17b3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
path: target/site/jacoco/
2828
- name: Generate coverage badge
2929
run: |
30-
COVERAGE=$(grep -oP '(?<=<td>Total<\/td><td class="bar">)[^<]+' target/site/jacoco/index.html)
30+
COVERAGE=$(grep -oP '(?<=<td>Total<\/td><td class="bar">)[^<]+' target/site/jacoco/index.html | sed 's/%//')
3131
echo "coverage=$COVERAGE" >> $GITHUB_ENV
32+
echo "::set-output name=coverage::$COVERAGE"
3233
- name: Create coverage badge
3334
uses: schneegans/[email protected]
3435
with:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![JUnit 5](https://img.shields.io/badge/JUnit-5-blue.svg)](https://junit.org/junit5/)
66
[![JaCoCo 0.8.x](https://img.shields.io/badge/JaCoCo-Coverage-blue.svg)](https://www.jacoco.org/jacoco/)
77
[![Build Status](https://github.com/luismr/dictionary-search-anagrams-java/actions/workflows/maven.yml/badge.svg)](https://github.com/luismr/dictionary-search-anagrams-java/actions/workflows/maven.yml)
8-
[![Coverage](https://github.com/luismr/dictionary-search-anagrams-java/blob/main/badges/coverage.svg)](https://github.com/luismr/dictionary-search-anagrams-java/actions/workflows/maven.yml)
8+
[![Coverage](https://img.shields.io/badge/coverage-80%25-brightgreen)](https://github.com/luismr/dictionary-search-anagrams-java/actions/workflows/maven.yml)
99

1010
A Java library for searching anagrams in a dictionary with different implementations.
1111

0 commit comments

Comments
 (0)