Skip to content

Commit

Permalink
Merge pull request #240 from satyazzz123/satyazzz123/#72
Browse files Browse the repository at this point in the history
added codecov to imgutil
  • Loading branch information
natalieparellano authored Feb 1, 2024
2 parents e94a1b7 + 2f10e3c commit 91e775c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
go-version: '1.20'
- name: Test
run: make test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
test-and-build-windows:
runs-on: windows-2019
steps:
Expand All @@ -29,3 +33,8 @@ jobs:
go-version: '1.20'
- name: Test
run: make test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ else
endif

test: layer/bcdhive_generated.go format lint
$(GOCMD) test -parallel=1 -count=1 -v ./...
$(GOCMD) test -parallel=1 -count=1 -coverprofile=coverage.out -v ./...

codecov: test
$(GOCMD) tool cover -html=coverage.out

tidy:
$(GOCMD) mod tidy && cd tools && $(GOCMD) mod tidy -compat=1.17 && cd bcdhive_generator && $(GOCMD) mod tidy

0 comments on commit 91e775c

Please sign in to comment.