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 b5e47bc commit 7ea09b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/coverage-and-sonar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
run: |
mvn --batch-mode --no-transfer-progress clean test org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
mvn --batch-mode --no-transfer-progress clean verify 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
- name: Check for Jacoco report
run: ls -l target/site/jacoco/jacoco.xml
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
Expand Down

0 comments on commit 7ea09b1

Please sign in to comment.