Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: write
steps:
- uses: actions/checkout@v6

Expand All @@ -19,9 +23,18 @@ jobs:
go-version: "1.25"

- name: Run tests with coverage
run: go test -race -coverprofile=coverage.txt ./...
run: go test -json -race -cover -coverprofile=coverage.txt ./... > test-results.json

- name: Test report
if: always()
uses: dorny/test-reporter@v2
with:
name: Go Test Results
path: test-results.json
reporter: golang-json

- name: Archive coverage results
if: always()
uses: actions/upload-artifact@v6
with:
name: code-coverage
Expand All @@ -37,7 +50,7 @@ jobs:
actions: read
pull-requests: write
steps:
- uses: fgrosse/go-coverage-report@v1.2
- uses: fgrosse/go-coverage-report@v1.2.0
with:
coverage-artifact-name: code-coverage
coverage-file-name: coverage.txt
Expand Down
Loading
Loading