diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3ccf0cf..5fed980 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -60,3 +60,9 @@ jobs: token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} branch: ${{ steps.vars.outputs.stage }} unprotect_reviews: true + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 819051a..8104ffc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,3 +38,9 @@ jobs: # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties index be5168c..4cde920 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,11 +1,11 @@ sonar.organization=wednesday-solutions -sonar.projectKey=wednesday-solutions_react-template +sonar.projectKey=wednesday-solutions_react-graphql-ts-template_AY7GxkO6B2n8RRmGoU1i -sonar.language=js +sonar.language=ts sonar.sources=. sonar.tests=app sonar.exclusions=*./.storybook,*./internals,*./server -sonar.test.inclusions=**/*.test.js +sonar.test.inclusions=**/*.test.ts sonar.javascript.lcov.reportPaths=./coverage/lcov.info sonar.testExecutionReportPaths=./reports/test-report.xml sonar.sourceEncoding=UTF-8 \ No newline at end of file