chore(ci): add sonar props

This commit is contained in:
Jean Barriere 2025-10-03 16:19:12 +02:00
parent d3e081a03a
commit 495d8741ae
No known key found for this signature in database
GPG Key ID: 4733D5DDD38FE23C
2 changed files with 25 additions and 0 deletions

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

@ -0,0 +1,21 @@
name: sonar
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: sonarsource/sonarqube-scan-action@v6
with:
projectBaseDir: ${{ github.workspace }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

4
sonar-project.properties Normal file
View File

@ -0,0 +1,4 @@
sonar.projectKey=com.shell.peter-evans-create-pull-request-v7
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.sources=src