Skip to content

Commit a3bb5f7

Browse files
committed
Adding sonarcloud in github workflow
1 parent 5b414a0 commit a3bb5f7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/master.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ jobs:
2525
with:
2626
java-version: ${{ matrix.java }}
2727
- name: Build and test, no integration tests
28-
run: mvn verify -pl '!biojava-integrationtest'
28+
env:
29+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
31+
# The following builds the project, runs the tests with coverage (no integration tests) and then executes the SonarCloud analysis
32+
run: mvn verify -pl '!biojava-integrationtest' org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=biojava_biojava

0 commit comments

Comments
 (0)