This is a small program that reads Go Test JSON output from its Stdin and formats it according to GitHub Actions rule.
go install marwan.io/actionsfmt@latest In an actions workflow:
go install marwan.io/actionsfmt@latest
- run
go test -json | actionsfmt
Or you can do it all in one line: go test -json | go run marwan.io/actionsfmt@latest