Skip to content

Commit 558f73e

Browse files
committed
Try analyzing with sonarcloud
1 parent 8f3b9f0 commit 558f73e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ jobs:
3535
architecture: ${{ matrix.arch }}
3636

3737
- name: Build with Maven
38+
if: matrix.arch != 'x64' && matrix.os != 'ubuntu-latest' && matrix.java != '8'
3839
run: mvn verify -B -"Dgpg.skip"
3940

41+
- name: Build with Maven
42+
if: matrix.arch == 'x64' && matrix.os == 'ubuntu-latest' && matrix.java == '8'
43+
run: mvn verify -B -"Dgpg.skip" org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
44+
4045
release:
4146
if: github.ref == 'refs/heads/master'
4247
needs: test

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
<target.jdk>1.8</target.jdk>
4949
<org.junit.version>5.7.0</org.junit.version>
5050
<slf4j.version>1.7.30</slf4j.version>
51+
<sonar.projectKey>dnsjava_dnsjava</sonar.projectKey>
52+
<sonar.organization>dnsjava</sonar.organization>
53+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
5154
</properties>
5255

5356
<build>

0 commit comments

Comments
 (0)