Last active
April 3, 2021 20:33
Android CI Workflow for GitHub Actions - Build APK for UI Test
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
# ... | |
jobs: | |
test: | |
# ... | |
apk: | |
name: Generate APK | |
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: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Assemble App APK | |
run: ./gradlew assembleDebug | |
- name: Upload App APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app-debug | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Assemble Android Instrumented Unit Test | |
run: ./gradlew assembleDebugAndroidTest | |
- name: Upload Android Test APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app-debug-androidTest | |
path: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk | |
firebase: | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment