From cea2d7c4cbacea0f51782aeaf2624ecd53c65e8b Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Mon, 29 Apr 2024 09:51:57 +1000 Subject: [PATCH] use codecov action (#1294) our previous method of uploading to codecov.io is suffering from throttling and taking 5+ hours, a post in the opentelemetry maintainers channel suggests this is the way to do it now --- .github/workflows/php.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 314c64a5c..0073d992d 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -131,7 +131,12 @@ jobs: run: vendor/bin/phpunit --testsuite integration - name: Code Coverage - run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.php-version }} + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.clover + flags: ${{ matrix.php-version }} + verbose: false packages: uses: opentelemetry-php/gh-workflows/.github/workflows/validate-packages.yml@main