-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from onaio/code-cov-refactor
[DNM] Code coverage refactor
- Loading branch information
Showing
75 changed files
with
794 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,16 @@ jobs: | |
- name: Cancel previous workflow runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Create local.properties file | ||
run: touch local.properties && echo "mapbox.repo.token=${{ secrets.MAPBOX_SDK_REPO_TOKEN }}" >> local.properties | ||
|
@@ -45,25 +44,12 @@ jobs: | |
|
||
- name: Git show commit count | ||
run: git fetch origin master && git rev-list --first-parent --count origin/master | ||
|
||
- name: Download Robolectric deps | ||
run: chmod +x download-robolectric-deps.sh && ./download-robolectric-deps.sh | ||
|
||
|
||
- name: Clean project | ||
run: ./gradlew clean --stacktrace | ||
|
||
- name: Build project skipping tests | ||
run: ./gradlew build -x test --stacktrace | ||
|
||
- name: Run Instrumented Tests manually | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 22 | ||
script: ./gradlew :library:connectedDebug --stacktrace --info | ||
run: ./gradlew clean --stacktrace | ||
|
||
- name: Run unit tests with Gradle | ||
run: ./gradlew :library:clean :library:testDebugUnitTest --stacktrace | ||
|
||
- name: Generate & upload library snapshot artifact AAR (Android Archive) file | ||
run: ./gradlew :library:clean --stacktrace && ./gradlew :library:assembleRelease --stacktrace && ./gradlew :library:publishMavenJavaPublicationToMavenCentralRepository --stacktrace | ||
|
||
|
@@ -73,4 +59,4 @@ jobs: | |
- name: Github Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }} | ||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,16 @@ jobs: | |
- name: Cancel previous workflow runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 11 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Create local.properties file | ||
run: touch local.properties && echo "mapbox.repo.token=${{ secrets.MAPBOX_SDK_REPO_TOKEN }}" >> local.properties | ||
|
@@ -45,22 +44,10 @@ jobs: | |
|
||
- name: Git show commit count | ||
run: git fetch origin master && git rev-list --first-parent --count origin/master | ||
|
||
- name: Download Robolectric deps | ||
run: chmod +x download-robolectric-deps.sh && ./download-robolectric-deps.sh | ||
|
||
|
||
- name: Clean project | ||
run: ./gradlew clean --stacktrace | ||
|
||
- name: Build project skipping tests | ||
run: ./gradlew build -x test --stacktrace | ||
|
||
- name: Run Instrumented Tests manually | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 22 | ||
script: ./gradlew :utils:connectedDebug --stacktrace | ||
|
||
- name: Generate & upload utils snapshot artifact AAR (Android Archive) file to Sonatype | ||
run: ./gradlew :utils:clean --stacktrace && ./gradlew :utils:assembleRelease --stacktrace && ./gradlew :utils:publishMavenJavaPublicationToMavenCentralRepository --stacktrace | ||
|
||
|
@@ -70,4 +57,4 @@ jobs: | |
- name: Github Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }} | ||
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.