diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 0000000..23ac0be --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,21 @@ +name: Sonar +on: + push: + branches: + - production + pull_request: + branches: + - production + types: [opened, synchronize, reopened] +jobs: + sonarqube: + name: SonarQube + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v6 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..b913342 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.projectKey=lburcusel_glowing-fiesta +sonar.organization=lburcusel + +sonar.projectName=Glowing Fiesta +sonar.projectVersion=1.0.0 +sonar.sourceEncoding=UTF-8 +sonar.sources=app, tests +sonar.inclusions=app/**/*.ts, app/**/*.js, app/**/*.vue, app/**/*.css, app/**/*.scss, tests/**/*.spec.ts +sonar.exclusions=**/node_modules/**, **/coverage/**, *.config.ts +sonar.coverage.exclusions=tests/**, *.config.ts +# sonar.javascript.lcov.reportPaths=coverage/lcov.info +# sonar.testExecutionReportPaths=coverage/sonar-report.xml diff --git a/tests/.keep b/tests/.keep new file mode 100644 index 0000000..e69de29