do not hide unit test failure (#1677)

This commit is contained in:
blotus 2022-07-22 10:59:23 +02:00 committed by GitHub
parent 496dacb7ff
commit 3adb90e7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -40,7 +40,8 @@ jobs:
- name: Run tests
run: |
go install github.com/kyoh86/richgo@v0.3.10
go test -coverprofile coverage.out -covermode=atomic ./... | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter
go test -coverprofile coverage.out -covermode=atomic ./... > out.txt
cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter
- name: Upload unit coverage to Codecov
uses: codecov/codecov-action@v2

View file

@ -76,6 +76,7 @@ jobs:
- name: Run tests
run: |
set -o pipefail
go install github.com/ory/go-acc@v0.2.8
go install github.com/kyoh86/richgo@v0.3.10
go-acc ./... -o coverage.out --ignore database,notifications,protobufs,cwversion,cstest,models \