-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into check-haxm
- Loading branch information
Showing
13 changed files
with
212 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: FireBase | ||
|
||
on: | ||
# allow to run manually | ||
workflow_dispatch: | ||
schedule: | ||
# run every day at 04:00 UTC+0 | ||
- cron: '0 4 * * *' | ||
|
||
jobs: | ||
assemble_ui_test_artifacts: | ||
name: Build artifacts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Build APK for UI test after Unit tests | ||
run: | | ||
./gradlew test | ||
./gradlew assembleDebug | ||
./gradlew assembleDebugAndroidTest | ||
- name: Upload app-debug APK | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-debug | ||
path: app/build/outputs/apk/debug/app-debug.apk | ||
|
||
- name: Upload app-debug-androidTest APK | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: app-debug-androidTest | ||
path: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk | ||
|
||
run_ui_tests_on_firebase: | ||
runs-on: ubuntu-latest | ||
needs: assemble_ui_test_artifacts | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download app-debug APK | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: app-debug | ||
|
||
- name: Download app-debug-androidTest APK | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: app-debug-androidTest | ||
|
||
- name: Firebase auth with gcloud | ||
uses: google-github-actions/setup-gcloud@master | ||
with: | ||
version: '290.0.1' | ||
service_account_key: ${{ secrets.FIREBASE_KEY }} | ||
project_id: ${{ secrets.PROJECT_ID }} | ||
|
||
- name: Run Instrumentation Tests in Firebase Test Lab | ||
# first command print all available devices | ||
# current device: | ||
# | MODEL_ID | MAKE | MODEL_NAME | FORM | RESOLUTION | OS_VERSION_IDS | | ||
# | blueline | Google | Pixel 3 | PHYSICAL | 2160 x 1080 | 28 | | ||
run: | | ||
gcloud firebase test android models list | ||
gcloud firebase test android run --type instrumentation --use-orchestrator \ | ||
--environment-variables clearPackageData=true \ | ||
--app app-debug/app-debug.apk --test app-debug-androidTest/app-debug-androidTest.apk \ | ||
--device model=blueline,version=28,locale=en,orientation=portrait --num-flaky-test-attempts 3 |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Test_and_build_artifacts_on_release | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
env: | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
RELEASE_SIGN_KEY_ALIAS: ${{ secrets.RELEASE_SIGN_KEY_ALIAS }} | ||
RELEASE_SIGN_KEY_PASSWORD: ${{ secrets.RELEASE_SIGN_KEY_PASSWORD }} | ||
|
||
jobs: | ||
build_apk_aab: | ||
name: Build release artifacts | ||
# ubuntu is faster and it's crucial for using in actions because we have a limited amount of time | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Checkout keystore repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ secrets.KEYSTORE_GIT_REPOSITORY }} | ||
token: ${{ secrets.KEYSTORE_ACCESS_TOKEN }} | ||
path: app/keystore | ||
- name: Build release APK and AAB after test | ||
run: | | ||
./gradlew test | ||
./gradlew assembleRelease | ||
./gradlew bundleRelease | ||
- name: Upload APK | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: crosslingo-release.apk | ||
path: app/build/outputs/apk/release/app-release.apk | ||
- name: Upload AAB Bundle | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: crosslingo-release.aab | ||
path: app/build/outputs/bundle/release/app-release.aab |
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 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 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ parameters: | |
- 27 | ||
- 28 | ||
- 29 | ||
- 30 | ||
|
||
trigger: | ||
- master | ||
|
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
Oops, something went wrong.