Skip to content

Commit

Permalink
Add Github action for Code-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhashiniNaik committed Nov 5, 2024
1 parent f6447ee commit 97828d1
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Code Coverage Report

on: [push, pull_request]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -14,26 +10,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.22.x'
- name: Configure CMake
run: cmake -B cmake-build-posix -S executables/referenceApp -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build cmake-build-posix --target app.referenceApp -j --config ${{env.BUILD_TYPE}}

- name: Test
# Execute tests defined by the CMake configuration.
run: |
cmake -B cmake-build-unit-tests -S executables/unitTest -DBUILD_UNIT_TESTS=ON
cmake --build cmake-build-unit-tests -j4
ctest --test-dir cmake-build-unit-tests -j4
# - name: Set permissions for cmake-build-unit-tests
# run: chmod -R a+r cmake-build-unit-tests

#Code coverage
- name: Install lcov
run: sudo apt install lcov
Expand Down

0 comments on commit 97828d1

Please sign in to comment.