File tree 3 files changed +22
-3
lines changed
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16
18
- name : Setup .NET
17
19
uses : actions/setup-dotnet@v4
18
20
with :
25
27
- name : Install Dependencies
26
28
run : npm ci
27
29
- name : Run Jest Tests
28
- run : npm run ci-test
30
+ run : npm run ci-test --coverage
31
+ - name : SonarQube Scan
32
+ uses : SonarSource/sonarqube-scan-action@v4
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
35
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
29
36
30
37
test-action :
31
38
name : GitHub Actions Test
Original file line number Diff line number Diff line change 1
- // tests/e2e.test.ts
2
-
3
1
import * as github from '@actions/github' ;
4
2
import fs from 'fs' ;
5
3
import path from 'path' ;
Original file line number Diff line number Diff line change
1
+ sonar.projectKey =na1307_blazor-github-pages
2
+ sonar.organization =na1307
3
+ sonar.javascript.lcov.reportPaths =./coverage/lcov.info
4
+
5
+ # This is the name and version displayed in the SonarCloud UI.
6
+ # sonar.projectName=blazor-github-pages
7
+ # sonar.projectVersion=1.0
8
+
9
+
10
+ # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
11
+ # sonar.sources=.
12
+
13
+ # Encoding of the source code. Default is default system encoding
14
+ # sonar.sourceEncoding=UTF-8
You can’t perform that action at this time.
0 commit comments