Skip to content

Commit

Permalink
Replaced Github integrated action with Gradle task for Sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Aug 5, 2020
1 parent 5f62285 commit c87d5ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
java-version: 1.8
- name: Run unit tests and coverage generation
run: ./gradlew jacocoTestReport
- name: SonarCloud static code analysis
run: ./gradlew sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
Expand All @@ -24,9 +29,4 @@ jobs:
avd-name: test
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 connectedPlayDebugAndroidTest connectedFossDebugAndroidTest
- name: SonarCloud static code analysis
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
script: ./gradlew -Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.FlakyTest connectedPlayDebugAndroidTest connectedFossDebugAndroidTest
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sonarqube {
properties {
property "sonar.projectName", "Omni Notes"
property "sonar.projectKey", "omni-notes"
property "sonar.organisation", "federicoiosue-github"
property 'sonar.projectVersion', project.VERSION_NAME
property "sonar.host.url", "https://sonarcloud.io"
property 'sonar.sourceEncoding', 'UTF-8'
Expand Down

0 comments on commit c87d5ee

Please sign in to comment.