Skip to content

Commit 1793760

Browse files
authored
Update integration-tests.yml
1 parent 3b5d768 commit 1793760

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/integration-tests.yml

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
name: Integration tests
2+
23
on:
34
pull_request:
45
push:
56
branches: [main]
7+
68
jobs:
79
test:
810
runs-on: ubuntu-latest
911
strategy:
1012
matrix:
11-
api-level: [33] # TODO: add more api levels to test
13+
api-level: [33] # TODO: add more API levels to test
14+
1215
env:
1316
MAILOSAUR_API_KEY: ${{ secrets.MAILOSAUR_API_KEY }}
1417
OTP_TEST_USER_AUTH_TOKEN: ${{ secrets.OTP_TEST_USER_AUTH_TOKEN }}
1518
APP_API_KEY: ${{ secrets.APP_API_KEY }}
19+
1620
steps:
17-
- name: checkout
21+
- name: Checkout
1822
uses: actions/checkout@v4
1923

2024
- name: Setup JDK 17
@@ -41,23 +45,14 @@ jobs:
4145
~/.android/adb*
4246
key: avd-${{ matrix.api-level }}
4347

44-
- name: create AVD and generate snapshot for caching
45-
if: steps.avd-cache.outputs.cache-hit != 'true'
48+
- name: Create AVD and run tests
4649
uses: reactivecircus/android-emulator-runner@v2
4750
with:
4851
api-level: ${{ matrix.api-level }}
4952
force-avd-creation: true
53+
wipe-data: true
5054
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
51-
disable-animations: false
52-
arch: x86_64
53-
script: echo "Generated AVD snapshot for caching."
54-
55-
- name: run tests
56-
uses: reactivecircus/android-emulator-runner@v2
57-
with:
58-
api-level: ${{ matrix.api-level }}
59-
force-avd-creation: false
60-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
6155
disable-animations: true
6256
arch: x86_64
63-
script: ./gradlew connectedDebugAndroidTest
57+
script: |
58+
./gradlew clean connectedDebugAndroidTest

0 commit comments

Comments
 (0)