diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e91fe5..3eccd73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,19 +49,24 @@ jobs: run: working-directory: syg-backend steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + fetch-depth: 0 # 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