feat: enhance Table of Contents functionality by excluding headerActi… #1230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| name: SonarQube Code Quality Analysis | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| sonarqube: | |
| name: SonarQube Analysis | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build project | |
| run: bun run build | |
| # - name: Run tests with coverage | |
| # run: bun run test:ci | |
| - name: Cache SonarCloud dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.sonar/cache | |
| key: ${{ runner.os }}-sonar-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-sonar- | |
| - name: SonarQube Scan | |
| uses: SonarSource/sonarqube-scan-action@v6 | |
| with: | |
| args: > | |
| -Dsonar.organization=prabhuignoto | |
| -Dsonar.projectKey=prabhuignoto_react-creme | |
| -Dsonar.sources=packages | |
| -Dsonar.exclusions=**/node_modules/**,**/dist/**,**/*.test.ts,**/*.test.tsx | |
| -Dsonar.test.inclusions=**/__tests__/**,**/*.test.ts,**/*.test.tsx | |
| -Dsonar.javascript.lcov.reportPaths=packages/lib/coverage/lcov.info | |
| -Dsonar.verbose=true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |