Add codecov action

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2019-12-13 08:58:11 +01:00
parent 2eb5b30151
commit a8fbae22ae
No known key found for this signature in database
GPG Key ID: 8CE029DD1A866E52
2 changed files with 6 additions and 6 deletions

View File

@ -58,8 +58,9 @@ jobs:
go run build.go gfmrun docs/v2/manual.md
go run build.go toc docs/v2/manual.md
- name: Send Coverage Report
- name: Upload coverage to Codecov
if: success() && matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
env:
CODECOV_TOKEN: fa7ff1caed3c43c68ae994495a6469d8
run: bash <(curl -s https://codecov.io/bash)
uses: codecov/codecov-action@v1
with:
token: 0a8cc73b-bb7c-480b-8626-38a461643761
fail_ci_if_error: true

View File

@ -20,10 +20,9 @@ install:
- go version
- go env
- go get github.com/urfave/gfmrun/cmd/gfmrun
- go get golang.org/x/tools/cmd/goimports
- go mod tidy
build_script:
- go run build.go vet
- go run build.go test
- go run build.go gfmrun docs/v1/manual.md
- go run build.go gfmrun docs/v1/manual.md