Skip to content

Commit

Permalink
Merge pull request #52 from nikepan/codecov
Browse files Browse the repository at this point in the history
codecov
  • Loading branch information
nikepan authored May 17, 2022
2 parents a8e2fc6 + 256ea0f commit f598939
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: build

on:
push:
Expand All @@ -23,3 +23,14 @@ jobs:

- name: Test
run: go test -v ./...

- name: Coverage
run: go test -v -race -covermode=atomic -coverprofile=coverage.out

- name: Upload coverage report
uses: codecov/codecov-action@v2
with:
files: ./coverage.out
flags: unittests
fail_ci_if_error: true
verbose: true

0 comments on commit f598939

Please sign in to comment.