Skip to content

Commit

Permalink
fix(ci): update artefacts management
Browse files Browse the repository at this point in the history
  • Loading branch information
Vacxe committed Sep 25, 2024
1 parent 1c8781d commit 3b38dee
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
with:
distribution: "zulu"
java-version: 17
cache: gradle
- name: Assemble Debug APK
run: bash ./gradlew sample:assembleDebug
- name: Upload app APK
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apk
name: debug-apk
path: sample/build/outputs/apk/debug/sample-debug.apk

assemble-debug-android-test-apk:
Expand All @@ -32,12 +33,13 @@ jobs:
with:
distribution: "zulu"
java-version: 17
cache: gradle
- name: Assemble Instrumental APK
run: bash ./gradlew sample:assembleDebugAndroidTest
- name: Upload app APK
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apk
name: test-apk
path: sample/build/outputs/apk/androidTest/debug/sample-debug-androidTest.apk

firebase-lab-test:
Expand All @@ -50,16 +52,20 @@ jobs:
api: [ 26, 27, 28, 29, 30, 31, 32, 33 ]
steps:
- uses: actions/checkout@v3
- name: Download APKs
uses: actions/download-artifact@v1
- name: Download Debug APK
uses: actions/download-artifact@v4
with:
name: apk
name: debug-apk
- name: Download Test APK
uses: actions/download-artifact@v4
with:
name: test-apk
- name: Run tests on Firebase Test Lab for API ${{ matrix.api }}
uses: vacxe/[email protected]
with:
service-account: ${{ secrets.FIREBASE_TESTLAB_JSON }}
app: apk/sample-debug.apk
test: apk/sample-debug-androidTest.apk
app: sample-debug.apk
test: sample-debug-androidTest.apk
device-id: MediumPhone.arm
os-version-id: ${{ matrix.api }}
num-flaky-test-attempts: 4
Expand Down

0 comments on commit 3b38dee

Please sign in to comment.