Browse Source

Jetify npx

Jamon Holmgren 5 years ago
parent
commit
a32cc59e70
2 changed files with 25 additions and 2 deletions
  1. 23
    0
      .github/workflows/detox.yml
  2. 2
    2
      bin/detox

+ 23
- 0
.github/workflows/detox.yml View File

1
+workflow "Detox CI Tests" {
2
+  on = "push"
3
+}
4
+
5
+jobs:
6
+  tests:
7
+    name: "Running tests"
8
+    runs-on: "macOS-latest"
9
+    steps:
10
+    - name: Setup - Install Homebrew
11
+      run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
12
+    - name: Setup - Install Node
13
+      run: brew install node
14
+    - name: Setup - Install React Native CLI
15
+      run: npm install -g react-native-cli
16
+    - name: Setup - Install NPM Dependencies
17
+      run: yarn
18
+    - name: Setup - Install CocoaPods CLI
19
+      run: sudo gem install cocoapods
20
+    - name: Setup - Verify
21
+      run: ./bin/setup
22
+    - name: Run tests
23
+      run: yarn ci:test

+ 2
- 2
bin/detox View File

9
 # Install NPM dependencies
9
 # Install NPM dependencies
10
 yarn
10
 yarn
11
 
11
 
12
-# Jetify deps
13
-npm jetify
12
+# Jetify deps (sudo if it fails for CI)
13
+npx jetify || sudo npx jetify
14
 
14
 
15
 # Install pods
15
 # Install pods
16
 cd ios
16
 cd ios