Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
ndy2 committed Nov 14, 2024
2 parents c6dfa2f + f10121f commit 748a492
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
go-version: '1.22'

- name: Test
run:
- go test -coverprofile=test.coverage.tmp -coverpkg=$(go list ./... | paste -sd ',' -) ./... && cat test.coverage.tmp | grep -v 'mock' > test.coverage && go tool cover -func test.coverage
- go tool cover -html=test.coverage -o test.coverage.html
run: |
go test -coverprofile=test.coverage.tmp -coverpkg=$(go list ./... | paste -sd ',' -) ./...
cat test.coverage.tmp | grep -v 'mock' > test.coverage
go tool cover -func test.coverage
go tool cover -html=test.coverage -o test.coverage.html
- name: Upload test coverage
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test.coverage.html
path: 'test.coverage.html'
Expand Down

0 comments on commit 748a492

Please sign in to comment.