This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
sonarqube :
9
9
name : SonarQube
10
10
runs-on : ubuntu-latest
11
+ if : github.event.workflow_run.conclusion == 'success'
11
12
steps :
12
13
- uses : actions/checkout@v2
13
14
with :
17
18
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
18
19
- name : Download Coverage Report
19
20
20
- if : github.event.workflow_run.conclusion == 'success'
21
21
with :
22
22
script : |
23
23
const artifacts = await github.actions.listWorkflowRunArtifacts({
36
36
});
37
37
const fs = require('fs');
38
38
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data));
39
+
39
40
- name : Extract Coverage Report
40
41
run : unzip -d coverage coverage.zip && rm coverage.zip
41
- if : github.event.workflow_run.conclusion == 'success'
42
42
43
43
- name : SonarCloud Scan
44
44
uses : SonarSource/sonarcloud-github-action@master
Original file line number Diff line number Diff line change @@ -19,4 +19,3 @@ sonar.typescript.tsconfigPath=./tsconfig.json
19
19
sonar.javascript.lcov.reportPaths =coverage/lcov.info
20
20
sonar.coverage.exclusions =spec/*.ts
21
21
sonar.testExecutionReportPaths =coverage/test-report.xml
22
- sonar.genericcoverage.unitTestReportPaths =coverage/test-report.xml
You can’t perform that action at this time.
0 commit comments