Skip to content

Commit

Permalink
ci: add sonarcloud coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ythepaut committed Apr 26, 2024
1 parent 75770db commit f5fad8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ jobs:
run: npm test
- name: Run lint
run: npm run lint
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sonar.projectKey=occult-app_crypto
sonar.sources=./src
sonar.exclusions=**/tests/**/*.spec.ts?
sonar.language=ts
sonar.tests=./tests

sonar.javascript.lcov.reportPaths=./coverage/lcov.info

sonar.sourceEncoding=UTF-8

0 comments on commit f5fad8d

Please sign in to comment.