Skip to content

Commit 49fda18

Browse files
Add Sonar to run in CI
1 parent a2192b4 commit 49fda18

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
run: mvn spotless:check
2929

3030
- name: Run Unit and Integration Tests
31-
run: mvn install
31+
env:
32+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
33+
run: mvn install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
3234

3335
release-check:
3436
if: github.event_name == 'pull_request' && github.base_ref == 'main'

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ limitations under the License.
3737
<google.java.format.version>1.17.0</google.java.format.version>
3838
<gpg.plugin.version>3.2.1</gpg.plugin.version>
3939
<flatten.plugin.version>1.6.0</flatten.plugin.version>
40+
<sonar.projectKey>diffblue_diffblue-sonar-plugin</sonar.projectKey>
41+
<sonar.organization>diffblue</sonar.organization>
42+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
4043
</properties>
4144

4245
<dependencyManagement>

0 commit comments

Comments
 (0)