Added Sonar workflow

This commit is contained in:
Liviu Burcusel 2025-10-22 15:51:40 +02:00
parent 866155e25e
commit 61184f57a5
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
3 changed files with 33 additions and 0 deletions

21
.github/workflows/sonar.yml vendored Normal file
View file

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

12
sonar-project.properties Normal file
View file

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

0
tests/.keep Normal file
View file