File tree 1 file changed +10
-15
lines changed
1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : Integration tests
2
+
2
3
on :
3
4
pull_request :
4
5
push :
5
6
branches : [main]
7
+
6
8
jobs :
7
9
test :
8
10
runs-on : ubuntu-latest
9
11
strategy :
10
12
matrix :
11
- api-level : [33] # TODO: add more api levels to test
13
+ api-level : [33] # TODO: add more API levels to test
14
+
12
15
env :
13
16
MAILOSAUR_API_KEY : ${{ secrets.MAILOSAUR_API_KEY }}
14
17
OTP_TEST_USER_AUTH_TOKEN : ${{ secrets.OTP_TEST_USER_AUTH_TOKEN }}
15
18
APP_API_KEY : ${{ secrets.APP_API_KEY }}
19
+
16
20
steps :
17
- - name : checkout
21
+ - name : Checkout
18
22
uses : actions/checkout@v4
19
23
20
24
- name : Setup JDK 17
@@ -41,23 +45,14 @@ jobs:
41
45
~/.android/adb*
42
46
key : avd-${{ matrix.api-level }}
43
47
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
46
49
uses : reactivecircus/android-emulator-runner@v2
47
50
with :
48
51
api-level : ${{ matrix.api-level }}
49
52
force-avd-creation : true
53
+ wipe-data : true
50
54
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
61
55
disable-animations : true
62
56
arch : x86_64
63
- script : ./gradlew connectedDebugAndroidTest
57
+ script : |
58
+ ./gradlew clean connectedDebugAndroidTest
You can’t perform that action at this time.
0 commit comments