diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9795f8e9..d7c66d4e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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