From 744b68ea81710a91d7901928715b73f25b5534eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ru=C3=A1n=20Murgatroyd?= Date: Sun, 11 Aug 2024 21:51:47 +0100 Subject: [PATCH] [SQ] Added SonarQube --- .github/workflows/sonarqube.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sonarqube.yml diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..799952b --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,25 @@ +name: SonarQube + +on: + push: + branches: + - master + + +jobs: + build: + name: Build and analyze + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - uses: sonarsource/sonarqube-quality-gate-action@master + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}