Use gotestsum in CI unit test workflow (#4342)

Use [gotestsum](https://github.com/gotestyourself/gotestsum) for running
unit tests in CI, so we get a summary result at the end, instead of having to
scroll up to find failures.

Doesn't apply for integration tests, as only failures are shown there,
and they're easily visible.
This commit is contained in:
Alejandro Pedraza 2020-05-07 08:56:58 -05:00 committed by GitHub
parent a703b5b1dc
commit a35ad28e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ jobs:
GITCOOKIE_SH: ${{ secrets.GITCOOKIE_SH }}
run: |
echo "$GITCOOKIE_SH" | bash
go get gotest.tools/gotestsum@v0.4.2
# TODO: validate bin/protoc-go.sh does not dirty the repo
go test -cover -race -v -mod=readonly ./...
gotestsum -- -cover -race -v -mod=readonly ./...
js_unit_tests:
name: JS unit tests
runs-on: ubuntu-18.04