-
Notifications
You must be signed in to change notification settings - Fork 28
54 lines (42 loc) · 1.8 KB
/
test-ios.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
name: Test iOS
on: pull_request
jobs:
test-ios:
name: Test detox iOS
runs-on: macos-latest
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/internal' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master' }}
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: "14.x"
- run: yarn install
- name: Prepare Detox
run: |
brew tap wix/brew
brew install applesimutils
- name: list devices
run: applesimutils --list
- run: pod install
working-directory: packages/mobile-app/ios
- name: Encrypt GPG secure files
run: |
brew install [email protected]
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.internal.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.alpha.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.beta.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.production.gpg
- run: npm install -g detox-cli
- run: FORCE_BUNDLING=true detox build -c ios.sim.release
working-directory: packages/mobile-app
- run: detox test -c ios.sim.release --record-videos all --take-screenshots all
working-directory: packages/mobile-app
- uses: actions/upload-artifact@v1
if: always()
with:
name: Detox iOS
path: packages/mobile-app/artifacts