2022-03-14 13:51:27 +05:30
|
|
|
name: Codecov
|
|
|
|
|
2023-06-30 13:44:57 +02:00
|
|
|
permissions: {}
|
|
|
|
|
2022-03-14 13:51:27 +05:30
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-02-09 15:17:23 +01:00
|
|
|
- '*'
|
2022-03-14 13:51:27 +05:30
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
2023-01-06 16:24:55 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-03-14 13:51:27 +05:30
|
|
|
jobs:
|
|
|
|
codecov:
|
2023-01-02 21:51:18 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-14 13:51:27 +05:30
|
|
|
steps:
|
2022-09-02 10:55:41 +02:00
|
|
|
- name: Checkout
|
2023-10-25 04:29:31 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-09-27 10:24:27 +02:00
|
|
|
- name: Setup caches
|
|
|
|
uses: ./.github/actions/setup-caches
|
|
|
|
timeout-minutes: 5
|
|
|
|
continue-on-error: true
|
|
|
|
with:
|
|
|
|
build-cache-key: codecov
|
2023-01-05 16:52:52 +01:00
|
|
|
- name: Setup build env
|
|
|
|
uses: ./.github/actions/setup-build-env
|
2023-08-30 22:44:51 +02:00
|
|
|
timeout-minutes: 10
|
2022-09-02 10:55:41 +02:00
|
|
|
- name: Generate Code Coverage Report
|
2022-03-14 13:51:27 +05:30
|
|
|
run: make code-cov-report
|
2022-09-02 10:55:41 +02:00
|
|
|
- name: Upload Report to Codecov
|
2023-05-16 20:56:50 +08:00
|
|
|
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
|
2022-03-14 13:51:27 +05:30
|
|
|
with:
|
|
|
|
file: ./coverage.out
|
|
|
|
fail_ci_if_error: true
|
2022-08-25 13:54:49 +05:30
|
|
|
verbose: true
|