48 lines (38 loc) 路 1.13 KB
/
detox.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
name: Detox
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
timeout-minutes: 15
env:
DEVELOPER_DIR: /Applications/Xcode_11.2.app
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Cache node modules
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn install
- name: Cache Pods
uses: actions/cache@v1
id: podcache
with:
path: ./examples/native/ios/Pods
key: pods-${{ hashFiles('**/Podfile.lock') }}
- name: Update Pods
working-directory: ./examples/native
run: |
gem update cocoapods xcodeproj
cd ios && pod install && cd ..
- run: brew tap wix/brew
- run: brew install applesimutils
- name: Detox build
working-directory: ./examples/native
run: yarn detox build --configuration ios.sim.release
- name: Detox test
working-directory: ./examples/native
run: yarn detox test --configuration ios.sim.release --cleanup