build: try twice test-race and test-coverage when test is successful

This commit is contained in:
Vincent Bernat
2022-03-23 16:38:55 +01:00
parent 200ce95b46
commit 3d6d28f15f

View File

@@ -35,8 +35,9 @@ run tests:
- time apk add --no-cache git make gcc musl-dev protoc shared-mime-info - time apk add --no-cache git make gcc musl-dev protoc shared-mime-info
- time go mod download - time go mod download
- touch web/data # don't build web data - touch web/data # don't build web data
- time make test-race - time make test
- time make test-coverage - time make test-race || make test-race
- time make test-coverage || make test-coverage
coverage: '/Code coverage: [0-9.]+/' coverage: '/Code coverage: [0-9.]+/'
artifacts: artifacts:
reports: reports: