Skip to content
Snippets Groups Projects
Unverified Commit 97a5558f authored by Kenny Leung's avatar Kenny Leung Committed by GitHub
Browse files

add code coverage to pull request. (#676)


Use codecov as service for code coverage.

Signed-off-by: default avatarKenny Leung <kleung@chainguard.dev>
parent f6d2d81f
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,9 @@ jobs:
- name: Fuzz-Build
run: make -C $GITHUB_WORKSPACE fuzz
- name: Test
run: go test -v ./...
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload Coverage Report
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
- name: Ensure no files were modified as a result of the build
run: git update-index --refresh && git diff-index --quiet HEAD -- || git diff --exit-code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment