Skip to content

Commit

Permalink
Merge pull request #34 from arshamalh/patch-1
Browse files Browse the repository at this point in the history
add: setup dependencies step and covering all packages in a module.
  • Loading branch information
thomasrockhu-codecov committed Apr 18, 2024
2 parents 8c08e38 + b640cee commit 24dd558
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Gather dependencies
run: go mod download
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
with:
token: ${{ secrets.CODECOV_ORG_TOKEN }}

0 comments on commit 24dd558

Please sign in to comment.