Skip to content

Commit

Permalink
Try fix sonar workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oranheim committed Oct 3, 2024
1 parent 7ea09b1 commit 2b7faf9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/coverage-and-sonar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2b7faf9

Please sign in to comment.