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