Skip to content

Commit

Permalink
test: add codecov coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed May 8, 2022
1 parent 240360b commit c620270
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: "v1.3.1"
version: "v1.8.3"
install-only: true

- name: Build binary
Expand All @@ -38,6 +38,10 @@ jobs:
- name: Unit tests
run: make test

- uses: codecov/codecov-action@v3
with:
files: cover.out

- name: Build image
uses: docker/build-push-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ test-registries:
go test github.com/ckotzbauer/sbom-operator/internal/registry

test:
go test $(shell go list ./... | grep -v sbom-operator/internal/registry)
go test $(shell go list ./... | grep -v sbom-operator/internal/registry) -coverprofile cover.out -race -covermode atomic

0 comments on commit c620270

Please sign in to comment.