Skip to content

Commit e282cd4

Browse files
committed
Code cov in sonarcloud
1 parent 79bc32d commit e282cd4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/security.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,16 @@ jobs:
5858
- uses: actions/checkout@v3
5959
with:
6060
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
61+
- name: Test and coverage
62+
run: npm run test:coverage
6163
- name: SonarCloud Scan
6264
uses: SonarSource/sonarcloud-github-action@v1.6
6365
env:
6466
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6567
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6668
with:
67-
args:
69+
args: >
6870
-Dsonar.projectKey=jerone_eslint-plugin-angular-template-consistent-this
6971
-Dsonar.organization=jerone
70-
-Dsonar.tests=tests/rules/
72+
-Dsonar.tests=./tests/rules/
73+
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 commit comments

Comments
 (0)