mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2026-02-06 01:39:47 +08:00
feat(ci): add CodeCov workflow for test coverage reporting
This commit is contained in:
parent
3ca2e93b19
commit
dc809e0da8
34
.github/workflows/codecov.yml
vendored
Normal file
34
.github/workflows/codecov.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Upload CodeCov Report
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
run: cmake -DCMAKE_BUILD_TYPE=Debug -DLIBIPC_BUILD_TESTS=ON -DLIBIPC_CODECOV=ON .
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: make -j
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
env:
|
||||||
|
LD_LIBRARY_PATH: ./bin
|
||||||
|
run: ./bin/test-ipc
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v4.0.1
|
||||||
|
with:
|
||||||
|
verbose: true
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
Loading…
x
Reference in New Issue
Block a user