Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2141b12

Browse files
authored
Tweak sonarqube run (#8475)
1 parent f08f764 commit 2141b12

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/sonarqube.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
sonarqube:
99
name: SonarQube
1010
runs-on: ubuntu-latest
11+
if: github.event.workflow_run.conclusion == 'success'
1112
steps:
1213
- uses: actions/checkout@v2
1314
with:
@@ -17,7 +18,6 @@ jobs:
1718
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
1819
- name: Download Coverage Report
1920
uses: actions/[email protected]
20-
if: github.event.workflow_run.conclusion == 'success'
2121
with:
2222
script: |
2323
const artifacts = await github.actions.listWorkflowRunArtifacts({
@@ -36,9 +36,9 @@ jobs:
3636
});
3737
const fs = require('fs');
3838
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data));
39+
3940
- name: Extract Coverage Report
4041
run: unzip -d coverage coverage.zip && rm coverage.zip
41-
if: github.event.workflow_run.conclusion == 'success'
4242

4343
- name: SonarCloud Scan
4444
uses: SonarSource/sonarcloud-github-action@master

sonar-project.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ sonar.typescript.tsconfigPath=./tsconfig.json
1919
sonar.javascript.lcov.reportPaths=coverage/lcov.info
2020
sonar.coverage.exclusions=spec/*.ts
2121
sonar.testExecutionReportPaths=coverage/test-report.xml
22-
sonar.genericcoverage.unitTestReportPaths=coverage/test-report.xml

0 commit comments

Comments
 (0)