mirror of
https://github.com/goreleaser/nfpm
synced 2024-04-26 20:05:46 +02:00
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>
This commit is contained in:
parent
448a83d0f9
commit
aaac886494
|
@ -37,13 +37,7 @@ jobs:
|
|||
run: go install github.com/mfridman/tparse@latest
|
||||
- run: task setup
|
||||
- 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: git diff
|
||||
run: ./scripts/test.sh test ${{ matrix.os }}
|
||||
- uses: codecov/codecov-action@v3
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
with:
|
||||
|
@ -81,12 +75,8 @@ jobs:
|
|||
- name: setup-tparse
|
||||
run: go install github.com/mfridman/tparse@latest
|
||||
- name: acceptance
|
||||
run: |
|
||||
task acceptance | tee output.json | tparse -notests -follow -all
|
||||
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
|
||||
run: ./scripts/test.sh acceptance ubuntu-latest
|
||||
env:
|
||||
TEST_OPTIONS: "-json"
|
||||
NO_COLOR: 1
|
||||
TEST_PATTERN: "/${{ matrix.pkgFormat }}/${{ matrix.pkgPlatform }}/"
|
||||
goreleaser:
|
||||
strategy:
|
||||
|
|
|
@ -8,7 +8,6 @@ import (
|
|||
)
|
||||
|
||||
func TestNotice(t *testing.T) {
|
||||
Print("before")
|
||||
var b bytes.Buffer
|
||||
Noticer = prefixed{&b}
|
||||
Print("blah\n")
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
Loading…
Reference in New Issue