Skip to content

Commit

Permalink
workflow: sonarcloud: Make build wrapper build tests and samples in root
Browse files Browse the repository at this point in the history
Previously twister was build and running inside app folder. This
excluded unit tests that were under test folder. This is now fixed.

Signed-off-by: Balaji Srinivasan <[email protected]>
  • Loading branch information
Balaji Srinivasan committed May 24, 2024
1 parent 5b0b0a5 commit 3bc319a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
- name: Run build-wrapper
working-directory: thingy91x-oob
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} west twister -T app -v --inline-logs --integration
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} west twister -T . --build-only -C -v --inline-logs --integration
- name: Run unit tests with coverage
- name: Run native_posix tests
working-directory: thingy91x-oob
run: |
west twister -T . -v --inline-logs --platform native_posix -C
west twister --test-only -v -i -C -T . -p native_posix
gcovr twister-out -v --merge-mode-functions=separate --exclude=twister-out --sonarqube coverage.xml
- name: Run sonar-scanner on main
Expand Down

0 comments on commit 3bc319a

Please sign in to comment.