add code coverage github action (#134)

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

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