Skip to content

Commit

Permalink
Bump codecov/codecov-action to v4
Browse files Browse the repository at this point in the history
We need to use a token to upload coverage data.
We can also disable coverage data search, as we already provide the list
of files (a single file in our case) to include in the report.

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas committed Sep 20, 2024
1 parent 4e741dd commit dd72ad0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
run: make test-unit

- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: .coverage/coverage_unit.txt
disable_search: true
flags: unit-tests
name: codecov-unit-test

Expand All @@ -51,9 +53,11 @@ jobs:
run: make test-integration

- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: .coverage/coverage_integration.txt
disable_search: true
flags: integration-tests
name: codecov-integration-test

Expand Down
2 changes: 1 addition & 1 deletion codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ comment:

ignore:
- "**/testing/mock_*.go"
- "pkg/producer/protobuf/*.pb.go"
- "**/*.pb.go"

0 comments on commit dd72ad0

Please sign in to comment.