Skip to content

Commit 3849065

Browse files
authored
ci: Fix failing Codecov upload (#995)
1 parent c388545 commit 3849065

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ jobs:
6464
dart pub global activate coverage
6565
dart pub global run coverage:format_coverage -i coverage/test -o coverage/lcov.info --lcov --packages=.dart_tool/package_config.json --report-on=lib
6666
- name: Upload code coverage
67-
uses: codecov/codecov-action@v2
67+
uses: codecov/codecov-action@v4
6868
# Needs to be adapted to collect the coverage at all platforms if platform specific code is added.
6969
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
7070
with:
7171
files: packages/dart/coverage/lcov.info
7272
fail_ci_if_error: true
73+
token: ${{ secrets.CODECOV_TOKEN }}
7374
check-flutter:
7475
runs-on: ${{ matrix.os }}
7576
strategy:
@@ -135,12 +136,13 @@ jobs:
135136
escapedPath="$(echo `pwd` | sed 's/\//\\\//g')"
136137
sed "s/^SF:lib/SF:$escapedPath\/lib/g" coverage/lcov.info > coverage/lcov-full.info
137138
- name: Upload code coverage
138-
uses: codecov/codecov-action@v2
139+
uses: codecov/codecov-action@v4
139140
# Needs to be adapted to collect the coverage at all platforms if platform specific code is added.
140141
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
141142
with:
142143
files: packages/flutter/coverage/lcov-full.info
143144
fail_ci_if_error: true
145+
token: ${{ secrets.CODECOV_TOKEN }}
144146
concurrency:
145147
group: ${{ github.workflow }}-${{ github.ref }}
146148
cancel-in-progress: true

0 commit comments

Comments
 (0)