Skip to content

Commit 30145df

Browse files
authored
Replace deprecated codecov bash uploader with codecov-action@v5 (#1083)
1 parent ae8ef4d commit 30145df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build_test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,13 @@ jobs:
119119
S3_ACCESS_KEY_ID: rustfsadmin
120120
S3_SECRET_ACCESS_KEY: rustfsadmin
121121

122-
- name: Upload
122+
- name: Upload coverage to Codecov
123123
if: matrix.os == 'ubuntu-latest'
124-
run: bash <(curl -s https://codecov.io/bash)
124+
uses: codecov/codecov-action@v5
125+
with:
126+
files: ./coverage.txt
127+
fail_ci_if_error: false
128+
token: ${{ secrets.CODECOV_TOKEN }}
125129

126130
unit_test_macos:
127131
name: unit tests (macos-latest)

0 commit comments

Comments
 (0)