-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20f104c
commit 36a4512
Showing
1 changed file
with
28 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,36 @@ on: | |
- testing | ||
|
||
jobs: | ||
build: | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 11 | ||
- name: Run Unit Tests | ||
run: ./gradlew testDebugUnitTest | ||
|
||
android_tests: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 11 | ||
- name: Start Emulator and Run Instrumented Tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 29 | ||
script: ./gradlew connectedDebugAndroidTest | ||
|
||
build_and_release: | ||
runs-on: ubuntu-latest | ||
needs: [unit_tests, android_tests] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -27,22 +54,6 @@ jobs: | |
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run Unit Tests | ||
run: ./gradlew test | ||
|
||
- name: Start emulator | ||
uses: ReactiveCircus/[email protected] | ||
with: | ||
api-level: 30 | ||
target: default | ||
arch: x86_64 | ||
profile: Nexus 6 | ||
emulator-options: -no-window | ||
disable-animations: true | ||
|
||
- name: Run Instrumented Tests | ||
run: ./gradlew connectedAndroidTest | ||
|
||
- name: Build app | ||
run: ./gradlew assembleRelease | ||
env: | ||
|
@@ -66,4 +77,3 @@ jobs: | |
prerelease: false | ||
files: | | ||
presentation/build/outputs/apk/release/*.apk | ||