File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 14
14
15
15
steps :
16
16
- 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
17
34
18
# Code coverage
35
19
- name : Install lcov
38
22
- name : Capture code coverage
39
23
run : |
40
24
echo "Capturing code coverage..."
41
- lcov --capture --directory \
25
+ lcov --capture --directory cmake-build-unit-tests \
42
26
--output-file cmake-build-unit-tests/coverage_unfiltered.info
43
27
44
28
- name : Filter out 3rd party and mock files
You can’t perform that action at this time.
0 commit comments