Skip to content

Commit f21ee46

Browse files
committed
added github ci
1 parent cc2e5c3 commit f21ee46

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Diff for: .github/workflows/ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y gcc lcov libncurses5-dev
21+
22+
- name: Build project
23+
run: |
24+
make test
25+
26+
- name: Run tests
27+
run: |
28+
./companders_fulltest
29+
30+
- name: Capture coverage info
31+
run: |
32+
lcov --directory . --capture --output-file coverage.info
33+
34+
- name: Filter out system and test code
35+
run: |
36+
lcov --remove coverage.info 'tests/*' '/usr/*' 'test-library*' --output-file coverage.info
37+
38+
- name: List coverage info
39+
run: |
40+
lcov --list coverage.info
41+

0 commit comments

Comments
 (0)