1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-04 23:26:09 +02:00
nfpm/scripts/test.sh
Carlos Alexandro Becker aaac886494
chore(ci): improve tparse (#527)
* chore(ci): improve tparse

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

* chore(ci): improve tparse

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-24 10:13:32 -03:00

12 lines
256 B
Bash
Executable File

#!/bin/bash
set -o pipefail && TEST_OPTIONS="-json" task $1 | tee output.json | tparse -follow
success=$?
if [ "$2" = "ubuntu-latest" ]; then
set -e
NO_COLOR=1 tparse -format markdown -slow 10 -file output.json > $GITHUB_STEP_SUMMARY
fi
exit $success