Added Sonar workflow
This commit is contained in:
parent
866155e25e
commit
61184f57a5
3 changed files with 33 additions and 0 deletions
21
.github/workflows/sonar.yml
vendored
Normal file
21
.github/workflows/sonar.yml
vendored
Normal 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
12
sonar-project.properties
Normal 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
0
tests/.keep
Normal file
Loading…
Add table
Add a link
Reference in a new issue