Skip to content

Commit

Permalink
Fixup: Try to build in one stage and the test in another
Browse files Browse the repository at this point in the history
  • Loading branch information
Balaji Srinivasan committed May 24, 2024
1 parent 03a0f28 commit 4245c48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ jobs:
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2

- name: Run unit tests with coverage
- name: Run build-wrapper
working-directory: thingy91x-oob
run: |
west twister -T . -v --inline-logs --platform native_posix -C
gcovr twister-out -v --merge-mode-functions=separate --exclude=twister-out --sonarqube coverage.xml
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} west twister -T . --build-only -C -v --inline-logs --integration
- name: Run build-wrapper
- name: Run native_posix tests
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
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
working-directory: thingy91x-oob
Expand Down

0 comments on commit 4245c48

Please sign in to comment.