From 6723e8a7f7aa53284e7d64077250e24f1c9beb20 Mon Sep 17 00:00:00 2001 From: soup-bowl Date: Tue, 8 Oct 2024 20:10:58 +0100 Subject: [PATCH] Added SonarQube. --- .github/workflows/test.yml | 7 +++++++ sonar-project.properties | 1 + 2 files changed, 8 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index addc4e0..84f2b38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,13 @@ jobs: steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - name: Composer Dependencies uses: php-actions/composer@v6 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..f95bb0d --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=soup-bowl_wp-simple-smtp_AZJthyW4wvap7F1pEwYC