redis/.github/workflows/codecov.yml
Vitah Lin e58041978d
Fix Codecov action GPG verification failure (#15314)
## Issue

The Codecov workflow failed while running
`codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2` (`v6`)
because the downloaded Codecov CLI could not be verified with GPG.

```text
Run codecov/codecov-action@57e3a136b7
==> Running Action version 6.0.0
...
gpg: Can't check signature: No public key
==> Could not verify signature. Please contact Codecov if problem continues
    Exiting...
```

## Change

Update the Codecov upload step to use `codecov/codecov-action v7.0.0`,
which includes the updated wrapper/signature verification behavior.
2026-06-09 12:58:37 +08:00

36 lines
951 B
YAML

name: "Codecov"
# Enabling on each push is to display the coverage changes in every PR,
# where each PR needs to be compared against the coverage of the head commit
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
code-coverage:
if: ${{ github.repository == 'redis/redis' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install lcov and run test
run: |
sudo apt-get install lcov
make lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./src/redis.info
disable_search: true
fail_ci_if_error: true