Skip to content

Commit

Permalink
ci: add tparse to improve test output formatting
Browse files Browse the repository at this point in the history
Signed-off-by: lvlcn-t <[email protected]>
  • Loading branch information
lvlcn-t committed Nov 17, 2024
1 parent 653d4b1 commit 783b60c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ jobs:
with:
go-version-file: go.mod

- name: Run all go tests
- name: Install dependencies
run: |
go install github.com/mfridman/tparse@latest
go mod download
go test -race -count=1 -coverprofile cover.out -v ./...
- name: Run all go tests
run: |
go test -v -count=1 -race ./... -json -coverpkg ./... \
| tee output.jsonl | tparse -notests -follow -all || true
tparse -format markdown -file output.jsonl -all -slow 20 > $GITHUB_STEP_SUMMARY
traceroute:
name: E2E - Traceroute
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
output.jsonl

# Dependency directories (remove the comment below to include it)
# vendor/
Expand Down

0 comments on commit 783b60c

Please sign in to comment.