mirror of
https://github.com/goreleaser/nfpm
synced 2024-03-29 07:10:15 +01:00
chore(ci): use tparse to report to GITHUB_STEP_SUMMARY (#516)
* chore(ci): use tparse to report to GITHUB_STEP_SUMMARY Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: append Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: json Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * feat: tparse Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
d1c1066609
commit
a843af4db8
|
@ -33,8 +33,16 @@ jobs:
|
|||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
- name: setup-tparse
|
||||
run: go install github.com/mfridman/tparse@latest
|
||||
- run: task setup
|
||||
- run: task test
|
||||
- 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
|
||||
- uses: codecov/codecov-action@v3
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
|
@ -53,8 +61,6 @@ jobs:
|
|||
NO_TEST_PPC64LE: "true"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
@ -72,7 +78,16 @@ jobs:
|
|||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- run: task setup
|
||||
- run: TEST_PATTERN=/${{ matrix.pkgFormat }}/${{ matrix.pkgPlatform }}/ task acceptance
|
||||
- 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
|
||||
env:
|
||||
TEST_OPTIONS: "-json"
|
||||
NO_COLOR: 1
|
||||
TEST_PATTERN: "/${{ matrix.pkgFormat }}/${{ matrix.pkgPlatform }}/"
|
||||
goreleaser:
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
|
@ -17,3 +17,4 @@ completions/
|
|||
.task/
|
||||
cosign.*
|
||||
manpages
|
||||
output.json
|
||||
|
|
Loading…
Reference in New Issue