1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

chore(ci): improve tparse output (#3193)

* chore(ci): improve tparse output

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* chore(ci): improve tparse output

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2022-06-24 09:33:34 -03:00 committed by GitHub
parent de9949705d
commit d58a3e72c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -91,12 +91,7 @@ jobs:
task setup
task build
- name: test
run: |
task test | tee output.json | tparse -notests -follow -all
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
env:
TEST_OPTIONS: "-json"
NO_COLOR: 1
run: ./scripts/test.sh
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3
with:
file: ./coverage.txt

9
scripts/test.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -o pipefail && TEST_OPTIONS="-json" task test | tee output.json | tparse -follow
success=$?
set -e
NO_COLOR=1 tparse -format markdown -slow 10 -file output.json > $GITHUB_STEP_SUMMARY
exit $success