From 016803951274b1b3c30c2eb00b7372fbb776324b Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Wed, 23 Dec 2020 10:31:44 +0100 Subject: [PATCH] SonarCloud scan within Github Actions a --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f83e1ece46..79c9cf3b1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,8 @@ 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