From d2d0ab0b887c3106014c5a0dc21dd7fc17110652 Mon Sep 17 00:00:00 2001 From: Baubak Gandomi Date: Sat, 24 Apr 2021 19:13:23 +0200 Subject: [PATCH 1/3] Removed upload of codecov --- .github/workflows/onPushSimpleTest.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/onPushSimpleTest.yml b/.github/workflows/onPushSimpleTest.yml index eb06ae9..c790479 100644 --- a/.github/workflows/onPushSimpleTest.yml +++ b/.github/workflows/onPushSimpleTest.yml @@ -42,16 +42,6 @@ jobs: echo "coverage = ${{ steps.jacoco.outputs.coverage }}" echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" - - name: Commit the badge (if it changed) - run: | - if [[ `git status --porcelain` ]]; then - git config --global user.name 'baubakg' - git config --global user.email 'baubakg@users.noreply.github.com' - git add -A - git commit -m "Autogenerated JaCoCo coverage badge" - git push - fi - - name: Upload JaCoCo coverage report uses: actions/upload-artifact@v2 with: From 0644462cbfb0b7fe47f3dd3ad41be39a58d90aa5 Mon Sep 17 00:00:00 2001 From: Baubak Gandomi Date: Sat, 24 Apr 2021 19:18:22 +0200 Subject: [PATCH 2/3] Publishing onto codecov --- .github/workflows/onPushSimpleTest.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/onPushSimpleTest.yml b/.github/workflows/onPushSimpleTest.yml index c790479..3aeac25 100644 --- a/.github/workflows/onPushSimpleTest.yml +++ b/.github/workflows/onPushSimpleTest.yml @@ -31,17 +31,19 @@ jobs: env: OSSRH_ARTIFACTORY_USER: ${{ secrets.OSSRH_ARTIFACTORY_USER }} OSSRH_ARTIFACTORY_API_TOKEN: ${{ secrets.OSSRH_ARTIFACTORY_API_TOKEN }} - - name: Generate JaCoCo Badge - id: jacoco - uses: cicirello/jacoco-badge-generator@v2.0.1 - with: - generate-branches-badge: true - name: Log coverage percentage run: | echo "coverage = ${{ steps.jacoco.outputs.coverage }}" echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" + - name: public coverage onto codecov + uses: codecov/codecov-action@v1 + with: + file: ./**/target/site/jacoco/jacoco.xml + name: codecov + token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload JaCoCo coverage report uses: actions/upload-artifact@v2 with: From 269e8bab771bbdf678734b6344e660260c9e79ec Mon Sep 17 00:00:00 2001 From: Baubak Gandomi Date: Sat, 24 Apr 2021 19:25:07 +0200 Subject: [PATCH 3/3] Removed the old jacoco badges --- .github/badges/branches.svg | 1 - .github/badges/jacoco.svg | 1 - .github/workflows/onPushSimpleTest.yml | 2 +- README.md | 3 +-- 4 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 .github/badges/branches.svg delete mode 100644 .github/badges/jacoco.svg diff --git a/.github/badges/branches.svg b/.github/badges/branches.svg deleted file mode 100644 index 381f6d0..0000000 --- a/.github/badges/branches.svg +++ /dev/null @@ -1 +0,0 @@ -branches92% \ No newline at end of file diff --git a/.github/badges/jacoco.svg b/.github/badges/jacoco.svg deleted file mode 100644 index 04936fc..0000000 --- a/.github/badges/jacoco.svg +++ /dev/null @@ -1 +0,0 @@ -coverage95.9% \ No newline at end of file diff --git a/.github/workflows/onPushSimpleTest.yml b/.github/workflows/onPushSimpleTest.yml index 3aeac25..1fb580b 100644 --- a/.github/workflows/onPushSimpleTest.yml +++ b/.github/workflows/onPushSimpleTest.yml @@ -37,7 +37,7 @@ jobs: echo "coverage = ${{ steps.jacoco.outputs.coverage }}" echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" - - name: public coverage onto codecov + - name: publish coverage onto codecov uses: codecov/codecov-action@v1 with: file: ./**/target/site/jacoco/jacoco.xml diff --git a/README.md b/README.md index 9eed88d..10f89b0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # log-parser [![unit-tests](https://github.com/adobe/log-parser/actions/workflows/onPushSimpleTest.yml/badge.svg)](https://github.com/adobe/log-parser/actions/workflows/onPushSimpleTest.yml) -![coverage](./.github/badges/jacoco.svg) -![branches](./.github/badges/branches.svg) +[![codecov](https://codecov.io/gh/adobe/log-parser/branch/master/graph/badge.svg?token=T94S3VFEUU)](https://codecov.io/gh/adobe/log-parser) This project was created to allow us to parse and analyze log files in order to gather relevant data. It can be used as is or as an SDK. Where you can define your own parsing.