Created
January 19, 2025 14:57
Revisions
-
hendisantika created this gist
Jan 19, 2025 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ name: Sonar Scan on: push: branches: - sonarqube-setup jobs: build-and-analyze: runs-on: [ ubuntu-latest ] steps: - name: Checkout Source uses: actions/checkout@v4 - name: Setup Java uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '23' - name: Build Project run: mvn clean install -DskipTests - name: SonarQube Scan uses: sonarsource/sonarqube-scan-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: 'https://sonarcloud.io/'