From 14db228fe5e78c2b4e8f42449c8e29cdc70408dd Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Fri, 12 Apr 2024 01:48:22 +0200 Subject: [PATCH 1/2] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b17df6f9..411fbc87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,12 +64,13 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage -i coverage/test -o coverage/lcov.info --lcov --packages=.dart_tool/package_config.json --report-on=lib - name: Upload code coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 # Needs to be adapted to collect the coverage at all platforms if platform specific code is added. if: ${{ always() && matrix.os == 'ubuntu-latest' }} with: files: packages/dart/coverage/lcov.info fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} check-flutter: runs-on: ${{ matrix.os }} strategy: From 0c17e90af88ff1be6923243ef98becb24c46af5f Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Fri, 12 Apr 2024 01:55:55 +0200 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 411fbc87..9aefc480 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,12 +136,13 @@ jobs: escapedPath="$(echo `pwd` | sed 's/\//\\\//g')" sed "s/^SF:lib/SF:$escapedPath\/lib/g" coverage/lcov.info > coverage/lcov-full.info - name: Upload code coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 # Needs to be adapted to collect the coverage at all platforms if platform specific code is added. if: ${{ always() && matrix.os == 'ubuntu-latest' }} with: files: packages/flutter/coverage/lcov-full.info fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true