Skip to content

Commit de89138

Browse files
authored
Update sonarqube.yml
1 parent 12693ec commit de89138

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/sonarqube.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,21 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
15-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
15+
fetch-depth: 0
16+
17+
- name: Run tests with coverage
18+
working-directory: PintudosFront
19+
run: npm run test -- --coverage
20+
1621
- name: SonarQube Scan
1722
uses: SonarSource/sonarqube-scan-action@v5
23+
working-directory: PintudosFront
1824
env:
1925
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
26+
with:
27+
projectKey: PINTUDOS-ARSW_PintudosFront
28+
organization: pintando
29+
extraProperties: |
30+
sonar.sources=src
31+
sonar.sourceEncoding=UTF-8
32+
sonar.javascript.lcov.reportPaths=coverage/lcov.info

0 commit comments

Comments
 (0)