From 330b6ffea01d4b1a4db14c2c893629f60bd332de Mon Sep 17 00:00:00 2001 From: antoninguyot Date: Fri, 23 May 2025 15:12:17 +0200 Subject: [PATCH] chore(ci): add sonar scan workflow --- .github/workflows/test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..e331bc0 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,25 @@ +name: Test +on: + pull_request: + branches: ["master"] + push: + branches: + - master + tags: + - "*" +jobs: + sonarqube: + runs-on: + - runs-on=${{ github.run_id }} + - runner=2cpu-linux-x64 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: SonarSource/sonarqube-scan-action@v5 + env: + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + with: + args: > + -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }}