diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8ddd15e5..e43added 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,7 @@ jobs: with: go-version: ${{ matrix.go-version }} - name: Test - run: make test + run: go test -vet=off -race -cover ./... -json > test.out - name: Lint # Often, lint & gofmt guidelines depend on the Go version. To prevent # conflicting guidance, run only on the most recent supported version. @@ -34,3 +34,13 @@ jobs: # supported version. if: matrix.go-version == '1.21.x' run: make checkgenerate && make lint + - name: Test Format + if: matrix.go-version == '1.21.x' + run: go install github.com/mfridman/tparse@latest && + tparse -all -file=test.out > test.txt + - name: Comment PR + uses: thollander/actions-comment-pull-request@v2 + if: matrix.go-version == '1.21.x' + with: + filePath: test.txt + comment_tag: execution