Develop #56
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
name: PR | |
on: [ pull_request ] | |
jobs: | |
detekt: | |
runs-on: ubuntu-latest | |
name: Detekt | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: detekt | |
run: | | |
./gradlew clean detekt | |
assemble-debug-apk: | |
needs: [ detekt ] | |
name: Assemble Debug APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Assemble Debug APK | |
run: bash ./gradlew sample:assembleDebug | |
- name: Upload app APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk | |
path: sample/build/outputs/apk/debug/sample-debug.apk | |
assemble-debug-android-test-apk: | |
needs: [ detekt ] | |
name: Assemble Instrumental APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Assemble Instrumental APK | |
run: bash ./gradlew sample:assembleDebugAndroidTest | |
- name: Upload app APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk | |
path: sample/build/outputs/apk/androidTest/debug/sample-debug-androidTest.apk | |
firebase-lab-test: | |
needs: [ assemble-debug-apk, assemble-debug-android-test-apk ] | |
name: Firebase Instrumental API | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
api: [ 26, 27, 28, 29, 30, 31, 32, 33 ] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download APKs | |
uses: actions/download-artifact@v1 | |
with: | |
name: apk | |
- name: Run tests on Firebase Test Lab for API ${{ matrix.api }} | |
uses: vacxe/firebase-test-lab-action@0.0.6 | |
with: | |
service-account: ${{ secrets.FIREBASE_TESTLAB_JSON }} | |
app: apk/sample-debug.apk | |
test: apk/sample-debug-androidTest.apk | |
device-id: MediumPhone.arm | |
os-version-id: ${{ matrix.api }} | |
num-flaky-test-attempts: 4 |