Skip to content

Commit

Permalink
fix(test): test before sonarqube analysis
Browse files Browse the repository at this point in the history
- make sure test results are available for coverage measurement
  • Loading branch information
cgawron committed Oct 2, 2024
1 parent 0dbd7fd commit ba49fe4
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,31 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Analyze with SonarQube

# Install package dependencies
- name: Install
run: yarn install --immutable

# Build
- name: Build
run: yarn workspace common build

# Run tests
- name: Test
run: yarn workspaces foreach --all run ci

- name: Test Summary
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/TEST-*.xml
- name: Analyze with SonarQube
# You can pin the exact commit or the version.
# uses: SonarSource/[email protected]
uses: sonarsource/sonarqube-scan-action@master
Expand Down

0 comments on commit ba49fe4

Please sign in to comment.