diff --git a/.gitea/workflows/sonarqube.yaml b/.gitea/workflows/sonarqube.yaml new file mode 100644 index 0000000..27de04f --- /dev/null +++ b/.gitea/workflows/sonarqube.yaml @@ -0,0 +1,20 @@ +name: SonarQube Analysis + +on: + push: + branches: [main, master, develop] + pull_request: + +jobs: + sonarqube: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml new file mode 100644 index 0000000..27de04f --- /dev/null +++ b/.github/workflows/sonarqube.yaml @@ -0,0 +1,20 @@ +name: SonarQube Analysis + +on: + push: + branches: [main, master, develop] + pull_request: + +jobs: + sonarqube: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..8706d10 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,5 @@ +# Remplacer PROJECT_NAME par le nom de votre projet +sonar.projectKey=PROJECT_NAME +sonar.projectName=PROJECT_NAME +sonar.sources=. +sonar.exclusions=**/node_modules/**,**/vendor/**,**/.git/**,**/dist/**,**/build/**,**/*.test.*,**/*.spec.*,**/coverage/**