From 9de8fbd18ef1a466d91b8b85752fa52bed90f890 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 1 Feb 2023 09:11:21 +0100 Subject: [PATCH] Sonar: run after tests on CI. --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 678a4268af..0c351d110a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,3 +32,10 @@ jobs: path: | **/out/failures/ **/build/reports/tests/*UnitTest/ + + - name: Publish results to Sonar + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + ORG_GRADLE_PROJECT_SONAR_LOGIN: ${{ secrets.SONAR_TOKEN }} + if: ${{ always() && env.GITHUB_TOKEN != '' && env.SONAR_TOKEN != '' && env.ORG_GRADLE_PROJECT_SONAR_LOGIN != '' }} + run: ./gradlew sonar $CI_GRADLE_ARG_PROPERTIES