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)

View File

@@ -1,6 +1,6 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/httprunner/httpboomer.svg)](https://pkg.go.dev/github.com/httprunner/httpboomer)
[![Github Actions](https://github.com/httprunner/HttpBoomer/actions/workflows/main.yml/badge.svg)](https://github.com/httprunner/HttpBoomer/actions)
[![Coverage Status](https://coveralls.io/repos/github/httprunner/HttpBoomer/badge.svg?branch=main)](https://coveralls.io/github/httprunner/HttpBoomer?branch=main)
[![codecov](https://codecov.io/gh/httprunner/HttpBoomer/branch/main/graph/badge.svg?token=HPCQWCD7KO)](https://codecov.io/gh/httprunner/HttpBoomer)
# HttpBoomer