diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-10-25 12:28:34 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-10-25 12:28:34 +0100 |
commit | db6a214b046c83d8cacd00608aa464bd040c4997 (patch) | |
tree | 406307e708405421120c523b5b65429391088efd /.github | |
parent | 313cb3fd193397536b069d819f8346d625d82af8 (diff) |
Prettify unit test output
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/dendrite.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/dendrite.yml b/.github/workflows/dendrite.yml index f8019b3e..a8271b67 100644 --- a/.github/workflows/dendrite.yml +++ b/.github/workflows/dendrite.yml @@ -109,6 +109,11 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} + - name: Set up gotestfmt + uses: gotesttools/gotestfmt-action@v2 + with: + # Optional: pass GITHUB_TOKEN to avoid rate limiting. + token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/cache@v3 with: path: | @@ -117,7 +122,7 @@ jobs: key: ${{ runner.os }}-go${{ matrix.go }}-test-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go${{ matrix.go }}-test- - - run: go test ./... + - run: go test -json -v ./... 2>&1 | gotestfmt env: POSTGRES_HOST: localhost POSTGRES_USER: postgres |