2022-03-14 08:21:27 +00:00
|
|
|
name: Codecov
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-02-09 14:17:23 +00:00
|
|
|
- '*'
|
2022-03-14 08:21:27 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
2023-01-06 15:24:55 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-01-06 10:07:06 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-03-14 08:21:27 +00:00
|
|
|
jobs:
|
|
|
|
codecov:
|
2023-01-02 20:51:18 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-14 08:21:27 +00:00
|
|
|
steps:
|
2022-09-02 08:55:41 +00:00
|
|
|
- name: Checkout
|
2023-03-24 09:26:01 +00:00
|
|
|
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
|
2023-01-05 15:52:52 +00:00
|
|
|
- name: Setup build env
|
|
|
|
uses: ./.github/actions/setup-build-env
|
2022-03-14 08:21:27 +00:00
|
|
|
with:
|
2023-01-05 15:52:52 +00:00
|
|
|
build-cache-key: codecov
|
2022-09-02 08:55:41 +00:00
|
|
|
- name: Generate Code Coverage Report
|
2022-03-14 08:21:27 +00:00
|
|
|
run: make code-cov-report
|
2022-09-02 08:55:41 +00:00
|
|
|
- name: Upload Report to Codecov
|
2022-12-05 20:34:29 +00:00
|
|
|
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
|
2022-03-14 08:21:27 +00:00
|
|
|
with:
|
|
|
|
file: ./coverage.out
|
|
|
|
fail_ci_if_error: true
|
2022-08-25 08:24:49 +00:00
|
|
|
verbose: true
|