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:
parent
de9949705d
commit
d58a3e72c3
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -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
9
scripts/test.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user