Skip to content

Commit

Permalink
ci: Add unit test to Github CI
Browse files Browse the repository at this point in the history
Adds unit tests to Github workflows as a CI-Check.

Signed-off-by: Reuben Cartwright <Reuben.Cartwright@arm.com>
  • Loading branch information
RC-Repositories committed Aug 6, 2024
1 parent 84eec01 commit 1e29d53
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,24 @@ jobs:
sudo apt-get -y update
sudo apt-get -y install fd-find
./tools/scripts/run_uncrustify.sh
unit-tests:
runs-on: ubuntu-latest
steps:
# Add submodules including fff and googletest.
- name: Checkout project
uses: actions/checkout@v3
with:
path: ${{ github.workspace }}
submodules: 'recursive'
- name: Install unit test build dependencies
shell: bash
run: |
pip install cmake ninja
# Run the unit tests
- name: Run unit tests
shell: bash
run: |
cmake -S . -B build_unit_test -GNinja -DOPT_ENABLE_COVERAGE=ON
cmake --build build_unit_test
ctest --test-dir build_unit_test --output-on-failure

0 comments on commit 1e29d53

Please sign in to comment.