2022-03-14 08:21:27 +00:00
|
|
|
name: Codecov
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
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-01-06 06:50:37 +00:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.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
|