Skip to content

Commit

Permalink
Add codecov token in code-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdqri authored Sep 7, 2024
1 parent fe2ffb3 commit af16ee1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.23'
go-version: 'stable'
- name: Gather dependencies
run: go mod download
- name: Run coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_ORG_TOKEN }}

0 comments on commit af16ee1

Please sign in to comment.