Skip to content

Commit

Permalink
build(test): Add Codecov reports (#78)
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <[email protected]>
  • Loading branch information
jannfis authored Jun 13, 2024
1 parent f73c15b commit ab50414
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,10 @@ jobs:
go mod download
- name: Run all unit tests
run: make test
- name: Upload coverage results
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: test/out/coverage.out


2 changes: 1 addition & 1 deletion hack/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Wrapper script to run unit tests for argocd-agent
set -eo pipefail
UNIT_LIST=$(go list ./... | grep -E -v '(mock|mocks|e2e|fake|pkg/api/grpc)')
go test -race -timeout 10m -coverprofile test/out/test.coverage $UNIT_LIST
go test -race -timeout 10m -coverprofile test/out/coverage.out $UNIT_LIST

0 comments on commit ab50414

Please sign in to comment.