From 37f8d6a250cc33430f2edd182c82d2033fe84f3a Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 9 Sep 2024 21:07:06 +1000 Subject: [PATCH] Revert "add GHA pipeline for sonarqube test" This reverts commit e27ca000445f2c03d2fe69f73ae124b80c9b63e5. --- .github/workflows/sonarqube.yaml | 37 -------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/sonarqube.yaml diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml deleted file mode 100644 index 7d5ab39..0000000 --- a/.github/workflows/sonarqube.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Build - -on: - workflow_dispatch: - push: - - -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 - - name: Set up JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 - - name: Cache SonarQube packages - uses: actions/cache@v1 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Cache Maven packages - uses: actions/cache@v1 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - name: Build and analyze - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ec-microservice-commons -Dsonar.projectName='ec-microservice-commons' \ No newline at end of file