mirror of https://github.com/vector-im/riot-web
Tweak sonarqube run (#8475)
parent
f08f764f22
commit
2141b122f9
|
@ -8,6 +8,7 @@ jobs:
|
||||||
sonarqube:
|
sonarqube:
|
||||||
name: SonarQube
|
name: SonarQube
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.workflow_run.conclusion == 'success'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -17,7 +18,6 @@ jobs:
|
||||||
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
|
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
|
||||||
- name: Download Coverage Report
|
- name: Download Coverage Report
|
||||||
uses: actions/github-script@v3.1.0
|
uses: actions/github-script@v3.1.0
|
||||||
if: github.event.workflow_run.conclusion == 'success'
|
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const artifacts = await github.actions.listWorkflowRunArtifacts({
|
const artifacts = await github.actions.listWorkflowRunArtifacts({
|
||||||
|
@ -36,9 +36,9 @@ jobs:
|
||||||
});
|
});
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data));
|
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data));
|
||||||
|
|
||||||
- name: Extract Coverage Report
|
- name: Extract Coverage Report
|
||||||
run: unzip -d coverage coverage.zip && rm coverage.zip
|
run: unzip -d coverage coverage.zip && rm coverage.zip
|
||||||
if: github.event.workflow_run.conclusion == 'success'
|
|
||||||
|
|
||||||
- name: SonarCloud Scan
|
- name: SonarCloud Scan
|
||||||
uses: SonarSource/sonarcloud-github-action@master
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
|
|
|
@ -19,4 +19,3 @@ sonar.typescript.tsconfigPath=./tsconfig.json
|
||||||
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||||
sonar.coverage.exclusions=spec/*.ts
|
sonar.coverage.exclusions=spec/*.ts
|
||||||
sonar.testExecutionReportPaths=coverage/test-report.xml
|
sonar.testExecutionReportPaths=coverage/test-report.xml
|
||||||
sonar.genericcoverage.unitTestReportPaths=coverage/test-report.xml
|
|
||||||
|
|
Loading…
Reference in New Issue