Skip to content

Commit

Permalink
Added coverage generation and sonarqube analysis to Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Aug 5, 2020
1 parent cfbdbc4 commit 5f62285
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run unit tests
run: ./gradlew test
- name: Run unit tests and coverage generation
run: ./gradlew jacocoTestReport
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
Expand All @@ -24,4 +24,9 @@ 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
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 }}
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

sonar.organization=federicoiosue-github
sonar.projectKey=omni-notes
sonar.projectName=Omni Notes
sonar.projectVersion=5.4.4

sonar.sources=omniNotes/src/main/java
sonar.language=java
sonar.sourceEncoding=UTF-8

sonar.branch=develop
sonar.branch=develop

0 comments on commit 5f62285

Please sign in to comment.