Skip to content

Commit f3dc30b

Browse files
committed
Fixing Test Coverage
1 parent c9e17b3 commit f3dc30b

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

.github/workflows/maven.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,8 @@ jobs:
3131
echo "coverage=$COVERAGE" >> $GITHUB_ENV
3232
echo "::set-output name=coverage::$COVERAGE"
3333
- name: Create coverage badge
34-
uses: schneegans/dynamic-badges-action@v1.7.0
34+
uses: codecov/codecov-action@v3
3535
with:
36-
auth: ${{ secrets.GITHUB_TOKEN }}
37-
name: coverage
38-
label: Coverage
39-
value: ${{ env.coverage }}
40-
color: green
41-
path: badges/coverage.svg
42-
- name: Commit coverage badge
43-
run: |
44-
git config --local user.email "[email protected]"
45-
git config --local user.name "GitHub Action"
46-
git add badges/coverage.svg
47-
git commit -m "Update coverage badge" || exit 0
48-
git push
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
files: target/site/jacoco/jacoco.xml
38+
fail_ci_if_error: true

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
[![Java 21](https://img.shields.io/badge/Java-21-blue.svg)](https://www.java.com)
44
[![Maven 3](https://img.shields.io/badge/Maven-3-blue.svg)](https://maven.apache.org)
5-
[![JUnit 5](https://img.shields.io/badge/JUnit-5-blue.svg)](https://junit.org/junit5/)
6-
[![JaCoCo 0.8.x](https://img.shields.io/badge/JaCoCo-Coverage-blue.svg)](https://www.jacoco.org/jacoco/)
5+
[![JUnit 5](https://img.shields.io/badge/JUnit-5-blue.svg)](https://junit.org/junit5/)
6+
[![JaCoCo 0.8.x](https://img.shields.io/badge/JaCoCo-Coverage-blue.svg)](https://www.jacoco.org/jacoco/)
7+
78
[![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://img.shields.io/badge/coverage-80%25-brightgreen)](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)
910

1011
A Java library for searching anagrams in a dictionary with different implementations.
1112

0 commit comments

Comments
 (0)