Skip to content

Commit

Permalink
ci: add Codecov to check test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Nov 14, 2023
1 parent 1143e07 commit cf358d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ jobs:
go-version: "1.21"

- name: Run tests
run: go test -v -race ./...
run: go test -coverprofile=coverage.txt -v -race ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/bats
/cmd/hcloud/hcloud
hcloud_cli.p12
coverage.txt

0 comments on commit cf358d9

Please sign in to comment.