Skip to content

Commit

Permalink
Add Codecov (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Feb 21, 2024
1 parent 9aaa38b commit 49d6cff
Show file tree
Hide file tree
Showing 5 changed files with 216 additions and 201 deletions.
7 changes: 7 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage:
status:
project:
default:
informational: true
comment:
require_changes: true
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
- name: Run Tests
run: make test

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 #4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}

build-docker:
name: Build Docker Image
runs-on: ubuntu-22.04
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ dist/

completions/
manpages/

coverage.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lint: ## Run linter

.PHONY: test
test: ## Run tests
go test ./... -race -shuffle=on
go test ./... -race -shuffle=on -coverprofile=coverage.txt -covermode=atomic

.PHONY: container
container: ## Build container image
Expand Down
Loading

0 comments on commit 49d6cff

Please sign in to comment.