From a2a100d39331189a974b7bd384c8eb585a47e275 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 13 Jun 2025 10:46:56 +0100 Subject: [PATCH] Fix `codecov-action` [DI-520] The C++ coverage action has been [silently failing](https://github.com/hazelcast/hazelcast-cpp-client/actions/runs/15610247637/attempts/1). Updated all usages to: - supply a token to properly authenticate (the reason for the failure) - fail the step if the upload fails (to avoid the error going unreported) - use the latest version (consistency) Fixes: [DI-520](https://hazelcast.atlassian.net/browse/DI-520) --- .github/workflows/coverage_runner.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage_runner.yml b/.github/workflows/coverage_runner.yml index c3190f304..00af1db53 100644 --- a/.github/workflows/coverage_runner.yml +++ b/.github/workflows/coverage_runner.yml @@ -97,23 +97,29 @@ jobs: - name: Publish results to Codecov for PR coming from hazelcast organization if: ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request_target' }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: + token: ${{ secrets.CODECOV_TOKEN }} files: coverage/lcov.info override_pr: ${{ github.event.pull_request.number }} + fail_ci_if_error: true - name: Publish results to Codecov for Push if: ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'push' }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: + token: ${{ secrets.CODECOV_TOKEN }} files: coverage/lcov.info + fail_ci_if_error: true - name: Publish result to Codecov for PR coming from community if: ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'workflow_dispatch' }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: + token: ${{ secrets.CODECOV_TOKEN }} files: coverage/lcov.info override_pr: ${{ github.event.inputs.pr_number }} + fail_ci_if_error: true - name: Upload remote controller logs if test run fails uses: actions/upload-artifact@v4