Merge pull request #2346 from nspcc-dev/fix-codecov
codecov: fix coverage reporting
This commit is contained in:
commit
01022c78e4
2 changed files with 0 additions and 28 deletions
|
@ -1,6 +1,4 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
|
||||||
codecov: codecov/codecov@1.0.5
|
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
go1_15:
|
go1_15:
|
||||||
|
@ -62,20 +60,6 @@ jobs:
|
||||||
- gomod
|
- gomod
|
||||||
- run: go test -v -race ./...
|
- run: go test -v -race ./...
|
||||||
|
|
||||||
test_cover:
|
|
||||||
working_directory: /go/src/github.com/nspcc-dev/neo-go
|
|
||||||
executor: go1_17
|
|
||||||
environment:
|
|
||||||
CGO_ENABLED: 0
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run: git submodule sync
|
|
||||||
- run: git submodule update --init
|
|
||||||
- gomod
|
|
||||||
- run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/...
|
|
||||||
- codecov/upload:
|
|
||||||
file: coverage.txt
|
|
||||||
|
|
||||||
build_cli:
|
build_cli:
|
||||||
working_directory: /go/src/github.com/nspcc-dev/neo-go
|
working_directory: /go/src/github.com/nspcc-dev/neo-go
|
||||||
executor: go1_17
|
executor: go1_17
|
||||||
|
@ -125,10 +109,6 @@ workflows:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: v/[0-9]+\.[0-9]+\.[0-9]+/
|
only: v/[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
- test_cover:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only: v/[0-9]+\.[0-9]+\.[0-9]+/
|
|
||||||
- build_cli:
|
- build_cli:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
codecov:
|
codecov:
|
||||||
require_ci_to_pass: no # We have several CI jobs that upload codecov results,
|
require_ci_to_pass: no # We have several CI jobs that upload codecov results,
|
||||||
# and sometimes some of them may fail, it's OK.
|
# and sometimes some of them may fail, it's OK.
|
||||||
coverage:
|
|
||||||
status:
|
|
||||||
project:
|
|
||||||
default: # This can be anything, but it needs to exist as the name
|
|
||||||
if_ci_failed: error #success, failure, error, ignore
|
|
||||||
only_pulls: false
|
|
||||||
comment:
|
|
||||||
after_n_builds: 1
|
|
||||||
|
|
Loading…
Reference in a new issue