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-09-05 09:27:02 +00:00
|
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
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-03-14 13:51:27 +05:30
|
|
|
with:
|
2023-01-05 16:52:52 +01:00
|
|
|
build-cache-key: codecov
|
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
|