diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b1e6bfa..05507c0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,3 +22,13 @@ jobs: - name: Build with Maven run: mvn --batch-mode -P jacoco verify + + - name: Run SonarCloud analysis + run: > + mvn --batch-mode -DskipTests sonar:sonar + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.organization=powsybl-ci-github + -Dsonar.projectKey=com.powsybl:powsybl-ws-commons + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}