Skip to content

Commit 959c0fa

Browse files
committed
Fixing Test Coverage
1 parent f3dc30b commit 959c0fa

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,4 @@ jobs:
2424
uses: actions/upload-artifact@v4
2525
with:
2626
name: coverage-report
27-
path: target/site/jacoco/
28-
- name: Generate coverage badge
29-
run: |
30-
COVERAGE=$(grep -oP '(?<=<td>Total<\/td><td class="bar">)[^<]+' target/site/jacoco/index.html | sed 's/%//')
31-
echo "coverage=$COVERAGE" >> $GITHUB_ENV
32-
echo "::set-output name=coverage::$COVERAGE"
33-
- name: Create coverage badge
34-
uses: codecov/codecov-action@v3
35-
with:
36-
token: ${{ secrets.CODECOV_TOKEN }}
37-
files: target/site/jacoco/jacoco.xml
38-
fail_ci_if_error: true
27+
path: target/site/jacoco/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![JaCoCo 0.8.x](https://img.shields.io/badge/JaCoCo-Coverage-blue.svg)](https://www.jacoco.org/jacoco/)
77

88
[![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)
9-
[![codecov](https://codecov.io/gh/luismr/dictionary-search-anagrams-java/branch/main/graph/badge.svg)](https://codecov.io/gh/luismr/dictionary-search-anagrams-java)
9+
[![Coverage](https://img.shields.io/badge/coverage-80%25-brightgreen)](https://github.com/luismr/dictionary-search-anagrams-java/actions/workflows/maven.yml)
1010

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

0 commit comments

Comments
 (0)