Skip to content

Commit d3dcc22

Browse files
committed
Add CodeCov
1 parent 64f5b43 commit d3dcc22

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/c-cpp.yml

+24
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,27 @@ jobs:
3737
- name: Run Unit Tests
3838
working-directory: ${{github.workspace}}/build
3939
run: ./ConcurrentHashMapTest
40+
41+
test:
42+
name: Run tests and collect coverage
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 2
49+
50+
- name: Set up Node
51+
uses: actions/setup-node@v4
52+
53+
- name: Install dependencies
54+
run: npm install
55+
56+
- name: Run tests
57+
run: npx jest --coverage
58+
59+
- name: Upload results to Codecov
60+
uses: codecov/codecov-action@v5
61+
with:
62+
token: ${{ secrets.CODECOV_TOKEN }}
63+
slug: diffstorm/ConcurrentHashMap

0 commit comments

Comments
 (0)