From abba4dff93a344b6c392b7d34606e6656e36e8ac Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Mon, 21 Nov 2022 11:48:11 +0100 Subject: [PATCH] ci: enable SonarQube analysis for pull requests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 453c1e4..5d3feb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release/') run: mvn -B -P coverage verify - name: Analysis - if: matrix.analysis && github.event_name == 'push' + if: matrix.analysis run: > mvn -B sonar:sonar -Dsonar.host.url=https://sonarcloud.io