From b98f37665af9476ee66504e60e8c096b49d28ed4 Mon Sep 17 00:00:00 2001 From: meleksabit Date: Sun, 15 Sep 2024 23:16:42 +0300 Subject: [PATCH] edit SonarQube workflow --- .github/workflows/sonarqube.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 5e0a3e4e..fc4047d4 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -28,6 +28,12 @@ jobs: java-version: '11' distribution: 'temurin' java-package: 'jdk' + + - name: Start SonarQube + run: | + docker run -d --name sonar-server -p 9000:9000 sonarqube + # Wait for SonarQube to be fully up + while ! curl -s http://localhost:9000/api/system/status | grep UP; do sleep 5; done - name: SonarQube Scan uses: sonarsource/sonarqube-scan-action@v2.3.0 # Latest version of SonarQube scan action