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 411ba4c commit 45bcb90
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ 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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sonar.projectKey=occult-app_crypto
sonar.organization=occult-app
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 45bcb90

Please sign in to comment.