add code coverage github action (#134)
This commit is contained in:
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@@ -1,6 +1,7 @@
|
||||
name: PR sanity check
|
||||
|
||||
on: pull_request
|
||||
on:
|
||||
- push
|
||||
|
||||
jobs:
|
||||
prcheck:
|
||||
@@ -20,4 +21,6 @@ jobs:
|
||||
with:
|
||||
version: latest
|
||||
- name: Run tests
|
||||
run: go test -v .
|
||||
run: go test -race -covermode=atomic -coverprofile=coverage.out -v .
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
||||
Reference in New Issue
Block a user