-
Notifications
You must be signed in to change notification settings - Fork 127
108 lines (87 loc) · 3.26 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# name: E2E
# on: [pull_request]
# jobs:
# android:
# name: E2E (Android)
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 20
# - uses: actions/setup-java@v2
# with:
# java-version: '11'
# distribution: 'adopt'
# - uses: actions/cache@v2
# with:
# path: |
# node_modules
# ios/Pods
# key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock', '**/Podfile.lock') }}
# restore-keys: |
# ${{ runner.os }}-deps-
# - run: NOPOSTINSTALLPODS=1 yarn install
# - name: Build app
# run: yarn e2e:build android.emu.debug
# - name: Start Metro
# run: |
# yarn start &
# echo "METRO_PID=$!" >> $GITHUB_ENV
# - name: Run Detox Tests (test attempt 1)
# continue-on-error: true
# id: test1
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# avd-name: Pixel_API_29_AOSP
# force-avd-creation: false
# emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047
# arch: x86_64
# script: yarn e2e:test android.emu.debug --headless -d -R 3
# - name: Run Detox Tests (test attempt 2)
# continue-on-error: true
# id: test2
# if: steps.test1.outcome != 'success'
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# avd-name: Pixel_API_29_AOSP
# force-avd-creation: false
# emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047
# arch: x86_64
# script: yarn e2e:test android.emu.debug --headless -d -R 3
# - name: Run Detox Tests (test attempt 3)
# if: steps.test1.outcome != 'success' && steps.test2.outcome != 'success'
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# avd-name: Pixel_API_29_AOSP
# force-avd-creation: false
# emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047
# arch: x86_64
# script: yarn e2e:test android.emu.debug --headless -d -R 3
# - name: Terminate Metro
# if: always()
# continue-on-error: true
# run: kill $METRO_PID
# # ios:
# # name: E2E (iOS)
# # runs-on: macOS-latest
# # steps:
# # - uses: actions/checkout@v2
# # - uses: actions/setup-node@v2
# # with:
# # node-version: 20
# # - uses: ruby/setup-ruby@v1
# # with:
# # bundler-cache: true
# # - run: yarn install
# # - name: Detox deps for ios
# # run: |
# # brew tap wix/brew
# # brew install applesimutils
# # - name: Build app
# # run: yarn e2e:build ios.sim.debug
# # - name: Run Detox Tests
# # run: bash ${{ github.workspace }}/ci/tasks/e2e-ios.sh