From 7646931a1d956297d677a82ca85b6b45482e47cd Mon Sep 17 00:00:00 2001 From: AGC <158510532+AlvaroGlezC@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:47:55 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b95a3f..6d7f2a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,28 +79,28 @@ jobs: run: npm run test:coverage working-directory: syg-frontend - # Debug: Echo the contents of the directories - - name: Echo Backend Directory - run: ls -R syg-backend + # # Debug: Echo the contents of the directories + # - name: Echo Backend Directory + # run: ls -R syg-backend - - name: Echo Frontend Directory - run: ls -R syg-frontend + # - name: Echo Frontend Directory + # run: ls -R syg-frontend - # # Copy coverage reports to a common directory if needed - # - name: Prepare Coverage Reports - # run: | - # mkdir -p coverage - # cp -r syg-backend/target/site/jacoco/* coverage/ - # cp syg-frontend/coverage/lcov.info coverage/ + # Copy coverage reports to a common directory if needed + - name: Prepare Coverage Reports + run: | + mkdir -p coverage + cp -r syg-backend/jacoco.xml coverage/ + cp syg-frontend/lcov.info coverage/ - # # SonarCloud analysis - # - name: SonarCloud Analysis - # run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ - # -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \ - # -Dsonar.coverage.jacoco.xmlReportPaths=coverage/jacoco.xml - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # working-directory: syg-backend + # SonarCloud analysis + - name: SonarCloud Analysis + run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ + -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \ + -Dsonar.coverage.jacoco.xmlReportPaths=coverage/jacoco.xml + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + working-directory: syg-backend # sonarcloudBackend: # name: sonarcloudBackend