-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): test before sonarqube analysis
- make sure test results are available for coverage measurement
- Loading branch information
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|