From bac1e6f7868ceac77e2f6ebbaf8b2271280d62bb Mon Sep 17 00:00:00 2001 From: Louis MARTIN Date: Wed, 19 Jun 2024 12:08:42 +0000 Subject: [PATCH] Update sonar-project --- .../workflows/java-continuous-integration.yml | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/.github/workflows/java-continuous-integration.yml b/.github/workflows/java-continuous-integration.yml index 28578dfe..4cfe5982 100644 --- a/.github/workflows/java-continuous-integration.yml +++ b/.github/workflows/java-continuous-integration.yml @@ -41,48 +41,3 @@ jobs: restore-keys: ${{ runner.os }}-yarn- - name: Build with Maven run: mvn -B clean install - code-analysis: - runs-on: ubuntu-latest - name: SonarCloud Code Analysis - # It's not possible to launch an analysis on external pull requests - if: ${{ github.repository_owner == 'cnescatlab' }} - steps: - - name: Check out repository code - uses: actions/checkout@v2 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Setup java - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: '11' - - name: Cache Maven packages - uses: actions/cache@v2 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - name: Cache node_modules - uses: actions/cache@v2 - with: - path: node_modules - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - restore-keys: ${{ runner.os }}-yarn- - - name: Cache SonarCloud packages - uses: actions/cache@v2 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Build - run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package - - name: "Setup java for just sonar analysis" - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: '17' - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@v2.2 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: https://sonarcloud.io \ No newline at end of file