Skip to content

Commit

Permalink
adjust codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej.benkovsky committed Nov 26, 2024
1 parent 9ffd83f commit 6a537e6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go.coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- name: Test With Coverage
run: |
go test -coverprofile=cover.out -covermode=atomic -race ./...; [ -f cover.out ] && cat cover.out >> ../coverage.txt
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
Expand Down

0 comments on commit 6a537e6

Please sign in to comment.