Skip to content

Commit 0f6be05

Browse files
committed
Fix action
1 parent d1a73bf commit 0f6be05

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ jobs:
2828
go-version-file: 'go.mod'
2929
- name: Run tests with coverage
3030
run: |
31-
go test -coverprofile=coverage.out -covermode=atomic $(go list ./... | grep -v '/examples/')
32-
- name: Generate coverage report
33-
uses: fgrosse/go-coverage-report@v1.1.0
31+
go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v '/examples/')
32+
- name: Upload coverage artifact
33+
uses: actions/upload-artifact@v4
3434
with:
35-
coverage-file: coverage.out
36-
coverage-threshold: 50
35+
name: code-coverage
36+
path: coverage.txt
37+
- name: Generate coverage report
38+
uses: fgrosse/go-coverage-report@v1.2.0
39+
if: github.event_name == 'pull_request'
3740

3841
verify-codegen:
3942
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.opencode
55
.claude
66
coverage.out
7+
coverage.txt

0 commit comments

Comments
 (0)