mirror of
https://github.com/goreleaser/nfpm
synced 2024-05-07 05:36:14 +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: go install github.com/mfridman/tparse@latest
|
||||||
- run: task setup
|
- run: task setup
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: ./scripts/test.sh test ${{ matrix.os }}
|
||||||
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
|
|
||||||
- uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v3
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
with:
|
with:
|
||||||
|
@ -81,12 +75,8 @@ jobs:
|
||||||
- name: setup-tparse
|
- name: setup-tparse
|
||||||
run: go install github.com/mfridman/tparse@latest
|
run: go install github.com/mfridman/tparse@latest
|
||||||
- name: acceptance
|
- name: acceptance
|
||||||
run: |
|
run: ./scripts/test.sh acceptance ubuntu-latest
|
||||||
task acceptance | tee output.json | tparse -notests -follow -all
|
|
||||||
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
|
|
||||||
env:
|
env:
|
||||||
TEST_OPTIONS: "-json"
|
|
||||||
NO_COLOR: 1
|
|
||||||
TEST_PATTERN: "/${{ matrix.pkgFormat }}/${{ matrix.pkgPlatform }}/"
|
TEST_PATTERN: "/${{ matrix.pkgFormat }}/${{ matrix.pkgPlatform }}/"
|
||||||
goreleaser:
|
goreleaser:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -8,7 +8,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNotice(t *testing.T) {
|
func TestNotice(t *testing.T) {
|
||||||
Print("before")
|
|
||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
Noticer = prefixed{&b}
|
Noticer = prefixed{&b}
|
||||||
Print("blah\n")
|
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