diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 743db49..60637de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..23a746e --- /dev/null +++ b/sonar-project.properties @@ -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