diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index cd0bc35..2042c74 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,6 +22,12 @@ jobs: run: mise run lint - name: Test run: mise run test:coverage + - name: SonarCloud Scan + uses: SonarSource/sonarqube-scan-action@v7 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + continue-on-error: true - name: Install Playwright Browsers run: mise run playwright:install - name: Build @@ -39,9 +45,3 @@ jobs: with: name: playwright-report path: playwright-report/ - - name: SonarCloud Scan - uses: SonarSource/sonarqube-scan-action@v7 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - continue-on-error: true diff --git a/sonar-project.properties b/sonar-project.properties index bb43aed..5bb6d8c 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,18 +1,9 @@ -# SonarCloud configuration sonar.organization=cur8d sonar.projectKey=cur8d.tsx sonar.projectName=cur8d -sonar.host.url=https://sonarcloud.io - -# Source and inclusion patterns -sonar.sources=. -sonar.inclusions=app/** -sonar.exclusions=**/node_modules/**, .next/**, docs/.next/**, coverage/**, tests/**, docs/** - -# Test and coverage configuration +sonar.sources=app sonar.tests=tests -sonar.test.inclusions=tests/**/*.test.tsx,tests/**/*.test.ts,tests/**/*.spec.ts +sonar.test.inclusions=**/*.test.ts,**/*.test.tsx sonar.javascript.lcov.reportPaths=coverage/lcov.info - -# TypeScript configuration +sonar.typescript.lcov.reportPaths=coverage/lcov.info sonar.typescript.tsconfigPath=tsconfig.json