From 13932bffc5eef9775c1d9470cd4dd3d032c845b7 Mon Sep 17 00:00:00 2001 From: AGC <158510532+AlvaroGlezC@users.noreply.github.com> Date: Thu, 2 May 2024 22:39:34 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3eccd73..2447425 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,24 +49,25 @@ jobs: run: working-directory: syg-backend steps: - - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: maven + - uses: actions/checkout@v3 + with: fetch-depth: 0 + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + # Build and test the project - - name: Build and Test - run: mvn clean install + - name: Build and Test + run: mvn clean install - # SonarCloud analysis - - name: SonarCloud Analysis - run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # SonarCloud analysis + - name: SonarCloud Analysis + run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} sonarcloudFrontend: name: sonarcloudFrontend