File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments