Skip to content

Commit

Permalink
chore: Try vgt
Browse files Browse the repository at this point in the history
  • Loading branch information
moduli committed Dec 3, 2024
1 parent dc51dfb commit e417223
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ jobs:
timeout_minutes: 120
retry_on: error
command: make test
- name: Upload test output
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: go-test-results
path: test-results.html
retention-days: 5
- name: Cleanup
if: always()
run: |
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ test-sql:

.PHONY: test
test:
go test "$(TEST_PACKAGE)" -tags="$(BUILD_TAGS)" $(TESTARGS) -json -cover -timeout $(TEST_TIMEOUT) | tparse -follow
go test "$(TEST_PACKAGE)" -tags="$(BUILD_TAGS)" $(TESTARGS) -json -cover -timeout $(TEST_TIMEOUT) > test-output.json
cat test-output.json | tparse -follow
cat test-output.json | go run github.com/roblaszczak/vgt@latest -print-html -dont-pass-output > test-results.html
rm test-output.json

.PHONY: test-sdk
test-sdk:
Expand Down

0 comments on commit e417223

Please sign in to comment.