Skip to content

Commit

Permalink
Github build made with Java 11 and Sonarcloud analysis as latest step
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Aug 14, 2020
1 parent 31ffeb8 commit a7d01da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ jobs:
steps:
- name: Checkout current develop branch
uses: actions/checkout@v1
- name: Setup JDK 1.8
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- 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 @@ -29,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
run: ./gradlew sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 2 additions & 2 deletions omniNotes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ android {

buildTypes {
debug {
testCoverageEnabled false
testCoverageEnabled true
}
release {
minifyEnabled true
Expand Down Expand Up @@ -255,7 +255,7 @@ jacocoAndroidUnitTestReport {
xml.enabled true
}
jacoco {
toolVersion = "0.8.4"
toolVersion = "0.8.5"
}

tasks.withType(Test) {
Expand Down

0 comments on commit a7d01da

Please sign in to comment.