Skip to content

Commit

Permalink
Github workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
hypfvieh committed Jul 12, 2024
1 parent a7756c5 commit 222f3da
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven_jdk17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: |
dbus-daemon --session --fork --address unix:path=/tmp/dbustest,guid=$(echo $RANDOM | md5sum | cut -d ' ' -f 1)
export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbustest
mvn -B package --file pom.xml -P sonarcloud
mvn -B package --file pom.xml -P sonarcloud-with-tests
2 changes: 1 addition & 1 deletion .github/workflows/maven_jdk21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
run: |
dbus-daemon --session --fork --address unix:path=/tmp/dbustest,guid=$(echo $RANDOM | md5sum | cut -d ' ' -f 1)
export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbustest
mvn -B package --file pom.xml -P sonarcloud
mvn -B package --file pom.xml -P sonarcloud-with-tests
29 changes: 29 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -667,5 +667,34 @@
</plugins>
</build>
</profile>

<profile>
<id>sonarcloud-with-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<check.skip-sonar>false</check.skip-sonar>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>hypfvieh</sonar.organization>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${mvn.sonar.maven.plugin}</version>
<executions>
<execution>
<goals>
<goal>sonar</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 222f3da

Please sign in to comment.