add code coverage github action (#134)

This commit is contained in:
sashabaranov authored and GitHub committed 2023-03-08 19:14:34 +04:00
1 parent c380d5031b
commit 14e1943c20
2 files changed
+6 -2

No files matched your search

+5 -2
View File
@@ -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