|
@@ -0,0 +1,32 @@
|
|
1
|
+name: 'Detox CI Tests - iOS'
|
|
2
|
+on: [push]
|
|
3
|
+
|
|
4
|
+jobs:
|
|
5
|
+ tests:
|
|
6
|
+ name: 'Running iOS Detox tests'
|
|
7
|
+ runs-on: 'macOS-latest'
|
|
8
|
+ steps:
|
|
9
|
+ - uses: actions/checkout@master
|
|
10
|
+ - uses: actions/setup-node@master
|
|
11
|
+ with:
|
|
12
|
+ node-version: 12.6
|
|
13
|
+ - name: Setup - Install Homebrew
|
|
14
|
+ run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
15
|
+ - name: Setup - Install Yarn
|
|
16
|
+ run: brew install yarn --ignore-dependencies
|
|
17
|
+ - name: Setup - Install NPM Dependencies
|
|
18
|
+ run: yarn
|
|
19
|
+ - name: Setup - Install CocoaPods CLI
|
|
20
|
+ run: sudo gem install cocoapods
|
|
21
|
+ - name: Setup - Install Detox and deps
|
|
22
|
+ run: |
|
|
23
|
+ brew tap wix/brew
|
|
24
|
+ brew install applesimutils
|
|
25
|
+ yarn global add react-native-cli
|
|
26
|
+ yarn global add detox-cli
|
|
27
|
+ - name: List iOS Simulators
|
|
28
|
+ run: xcrun simctl list
|
|
29
|
+ - name: Prepare Example App
|
|
30
|
+ run: yarn ci:setup
|
|
31
|
+ - name: Run tests
|
|
32
|
+ run: yarn ci:ios
|