feat: add codecov

This commit is contained in:
debugtalk
2021-09-30 16:58:04 +08:00
parent 652c361240
commit 3bd7b484c8
2 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
- name: Test coverage
run: go test -coverprofile="cover.out" ./... # quotes needed for powershell
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)