Skip to content

feat: enhance Table of Contents functionality by excluding headerActi… #1230

feat: enhance Table of Contents functionality by excluding headerActi…

feat: enhance Table of Contents functionality by excluding headerActi… #1230

Workflow file for this run

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 }}