Browse Source

Detox setup

Jamon Holmgren 5 years ago
parent
commit
bb1c09e842
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      .github/workflows/detox.yml

+ 9
- 1
.github/workflows/detox.yml View File

10
       - uses: actions/setup-node@master
10
       - uses: actions/setup-node@master
11
         with:
11
         with:
12
           node-version: 12.6
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)"
13
       - name: Setup - Install Yarn
15
       - name: Setup - Install Yarn
14
-        run: YARN_GPG=NO curl -o- -L https://yarnpkg.com/install.sh | bash
16
+        run: brew install yarn --ignore-dependencies
15
       - name: Setup - Install NPM Dependencies
17
       - name: Setup - Install NPM Dependencies
16
         run: yarn
18
         run: yarn
17
       - name: Setup - Install CocoaPods CLI
19
       - name: Setup - Install CocoaPods CLI
18
         run: sudo gem install cocoapods
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
19
       - name: Run tests
27
       - name: Run tests
20
         run: yarn ci
28
         run: yarn ci