Skip to content

Commit

Permalink
Codecov is throttling.
Browse files Browse the repository at this point in the history
Update the code coverage job to only run on one matrix so we stop uploading 4 copies of the same coverage report.

also cleanup actions from the github action linting suggestions.
  • Loading branch information
jeffbean committed Apr 28, 2024
1 parent 477911b commit 73213d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
go-version: ['oldstable', 'stable']
runs-on: ubuntu-latest
steps:
- name: Go ${{ matrix.go }} setup
- name: Go ${{ matrix.go-version }} setup
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
Expand All @@ -28,6 +28,8 @@ jobs:
run: make test ZK_VERSION=${{ matrix.zk-version }}

- name: Upload code coverage
uses: codecov/codecov-action@v1
# only upload one result from the matrix.
if: ${{ strategy.job-index == 0 }}
uses: codecov/codecov-action@v4
with:
file: ./profile.cov
4 changes: 2 additions & 2 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
go-version: ['oldstable', 'stable']
runs-on: ubuntu-latest
steps:
- name: Go ${{ matrix.go }} setup
- name: Go ${{ matrix.go-version }} setup
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v3

- name: Run unittest ${{ matrix.go }}
- name: Run unittest ${{ matrix.go-version }}
run: make unittest

0 comments on commit 73213d5

Please sign in to comment.