Skip to content

Commit

Permalink
Switch coverage from Codacy to Codecov (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
borodean authored Jan 3, 2022
1 parent 76fe808 commit b44ddd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ jobs:
go: ["1.17", "1.16"]
name: Go v${{ matrix.go }}
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Set up Go
- name: Set up Go environment
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Test
run: make test-ci

- name: Submit coverage report to Codacy
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
--force-coverage-parser go -r coverage.out
- name: Codecov
uses: codecov/codecov-action@v2.1.0
with:
files: coverage.out
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Go Reference][go-reference-badge]][go-reference]
[![Codacy Quality][codacy-quality-badge]][codacy-dashboard]
[![Codacy Coverage][codacy-coverage-badge]][codacy-dashboard]
[![Codecov Coverage][codecov-coverage-badge]][codecov-coverage]

# ![asciitree][asciitree-logo]

Expand Down Expand Up @@ -46,5 +46,6 @@ MIT.
[go-reference]: https://pkg.go.dev/github.com/borodean/asciitree
[codacy-quality-badge]: https://app.codacy.com/project/badge/Grade/c5ef187cb0fa41f4ad4fa4f635cc8cd6
[codacy-dashboard]: https://www.codacy.com/gh/borodean/asciitree/dashboard
[codacy-coverage-badge]: https://app.codacy.com/project/badge/Coverage/c5ef187cb0fa41f4ad4fa4f635cc8cd6
[codecov-coverage-badge]: https://codecov.io/gh/borodean/asciitree/branch/main/graph/badge.svg?token=UNHXM8TZJ4
[codecov-coverage]: https://codecov.io/gh/borodean/asciitree
[asciitree-logo]: ./logo.svg

0 comments on commit b44ddd3

Please sign in to comment.