Skip to content

Commit a8e6c7e

Browse files
committed
feat(ci): add CodeCov workflow for test coverage reporting
1 parent b3847c1 commit a8e6c7e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Upload CodeCov Report
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v2
17+
18+
- name: Configure
19+
run: cmake -DCMAKE_BUILD_TYPE=Debug -DLIBIPC_BUILD_TESTS=ON -DLIBIPC_CODECOV=ON .
20+
21+
- name: Build
22+
run: make -j
23+
24+
- name: Test
25+
env:
26+
LD_LIBRARY_PATH: ./bin
27+
run: ./bin/test-ipc
28+
29+
- name: Upload coverage to Codecov
30+
uses: codecov/[email protected]
31+
with:
32+
verbose: true
33+
env:
34+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)