mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2026-01-01 03:12:13 +08:00
feat(ci): add CodeCov workflow for test coverage reporting
This commit is contained in:
parent
b3847c1896
commit
a8e6c7ee39
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