feat(frontend): ajout sonarqube dans le pipeline
This commit is contained in:
@@ -12,6 +12,7 @@ on:
|
||||
description: "Choix du job"
|
||||
options:
|
||||
- build
|
||||
- sonarqube
|
||||
- test
|
||||
- deploy
|
||||
- all
|
||||
@@ -40,6 +41,18 @@ jobs:
|
||||
# echo Add other actions to build,
|
||||
# echo test, and deploy your project.
|
||||
|
||||
sonarqube:
|
||||
name: SonarQube
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||
with:
|
||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||
- name: SonarQube Scan
|
||||
uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
test:
|
||||
if: ${{ github.event.inputs.job_choice == 'test' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user