forked from rnmapbox/maps
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.11 KB
/
ios-actions.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
name: iOS Build & Detox
on:
workflow_call:
inputs:
NVMRC:
required: true
type: string
secrets:
MAPBOX_ACCESS_TOKEN:
required: true
jobs:
build:
runs-on: macos-latest
timeout-minutes: 25
defaults:
run:
working-directory: ./example
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Access Token
run: echo $MAPBOX_ACCESS_TOKEN > ./accesstoken
env:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
- name: Setup node ${{ inputs.NVMRC }}
uses: actions/[email protected]
with:
node-version: ${{ inputs.NVMRC }}
- name: Install Yarn Dependencies
run: yarn install --network-timeout 1000000
- name: Install Pod Dependencies
run: cd ios && pod --version && pod install
- name: Install Detox Dependencies
run: |
brew tap wix/brew
brew install applesimutils
- name: Build for detox
run: yarn detox build
- name: Test with detox
run: yarn detox test --debug-synchronization 200