We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ca7241 commit fe13f66Copy full SHA for fe13f66
1 file changed
.github/workflows/ci.yml
@@ -1,4 +1,4 @@
1
-name: Codecov CI with Vitest and Bundle Analysis
+name: Codecov CI with Vitest and Bundle Analysis + SonarQube
2
3
on: [push, pull_request]
4
@@ -79,3 +79,21 @@ jobs:
79
uses: codecov/test-results-action@v1
80
with:
81
token: ${{ secrets.CODECOV_ORG_TOKEN }}
82
+
83
+ - name: Install SonarQube scanner
84
+ run: npm install -g sonarqube-scanner
85
86
+ - name: Create sonar-project.properties
87
+ run: |
88
+ cat <<EOF > sonar-project.properties
89
+ sonar.projectKey=example-javascript
90
+ sonar.sources=app
91
+ sonar.javascript.lcov.reportPaths=coverage/lcov.info
92
+ sonar.host.url=${{ secrets.SONAR_HOST_URL }}
93
+ EOF
94
95
+ - name: Run SonarQube scanner
96
+ run: sonar-scanner
97
+ env:
98
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
99
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
0 commit comments