File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
- permissions :
13
- contents : write
14
12
15
13
steps :
16
14
- uses : actions/checkout@v4
17
- - name : Setup cmake
18
- uses : jwlawson/actions-setup-cmake@v2
19
- with :
20
- cmake-version : ' 3.22.x'
21
- - name : Configure CMake
22
- run : cmake -B cmake-build-posix -S executables/referenceApp -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
23
-
24
- - name : Build
25
- run : cmake --build cmake-build-posix --target app.referenceApp -j --config ${{env.BUILD_TYPE}}
26
-
27
- - name : Test
28
- # Execute tests defined by the CMake configuration.
29
- run : |
30
- cmake -B cmake-build-unit-tests -S executables/unitTest -DBUILD_UNIT_TESTS=ON
31
- cmake --build cmake-build-unit-tests -j4
32
- ctest --test-dir cmake-build-unit-tests -j4
33
15
34
16
# Code coverage
35
17
- name : Install lcov
36
18
run : sudo apt install lcov
37
19
38
20
- name : Capture code coverage
39
21
run : lcov --capture --directory . \
40
- --output-file cmake-build-unit-tests/coverage_unfiltered.info
22
+
23
+ - name : Capture code coverage 2
24
+ run : --output-file cmake-build-unit-tests/coverage_unfiltered.info
41
25
42
26
- name : Filter out 3rd party and mock files
43
27
run : |
You can’t perform that action at this time.
0 commit comments