diff --git a/.github/workflows/coverage-and-sonar-analysis.yml b/.github/workflows/coverage-and-sonar-analysis.yml index 1ad953c..fa41c64 100644 --- a/.github/workflows/coverage-and-sonar-analysis.yml +++ b/.github/workflows/coverage-and-sonar-analysis.yml @@ -36,12 +36,16 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} run: | - mvn --batch-mode --no-transfer-progress clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ + mvn --batch-mode --no-transfer-progress clean verify org.jacoco:jacoco-maven-plugin:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ -P coverage,sonar \ -Dsonar.projectKey=descoped_data-collector-core \ -Dsonar.organization=descoped \ -Dsonar.host.url=https://sonarcloud.io \ - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml + -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \ + -X - - name: Check for Jacoco report - run: ls -l target/site/jacoco/jacoco.xml + - name: List target directory + run: ls -R target + + - name: Find Jacoco files + run: find . -name "*jacoco*.xml"