Skip to content

Commit d4b383c

Browse files
committed
Add Github action for Code-coverage
1 parent a35b186 commit d4b383c

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@ jobs:
1414

1515
steps:
1616
- 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
3317

3418
#Code coverage
3519
- name: Install lcov
@@ -38,7 +22,7 @@ jobs:
3822
- name: Capture code coverage
3923
run: |
4024
echo "Capturing code coverage..."
41-
lcov --capture --directory \
25+
lcov --capture --directory cmake-build-unit-tests \
4226
--output-file cmake-build-unit-tests/coverage_unfiltered.info
4327
4428
- name: Filter out 3rd party and mock files

0 commit comments

Comments
 (0)