From d78a98e9587438370610b5f519e2ec2a191f32d1 Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Wed, 23 Dec 2020 00:33:07 +0100 Subject: [PATCH] SonarCloud scan within Github Actions --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f83e1ece46..534a27a872 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,7 @@ jobs: emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim disable-animations: true script: ./gradlew -Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.FlakyTest,androidx.test.filters.LargeTest jacocoTestReport --stacktrace - - name: SonarCloud static code analysis - run: ./gradlew sonar + - name: SonarCloud static code and coverage analysis env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: ./gradlew sonarqube -Dsonar.login="$SONAR_TOKEN" \ No newline at end of file