Jamon Holmgren hace 5 años
padre
commit
a32cc59e70
Se han modificado 2 ficheros con 25 adiciones y 2 borrados
  1. 23
    0
      .github/workflows/detox.yml
  2. 2
    2
      bin/detox

+ 23
- 0
.github/workflows/detox.yml Ver fichero

@@ -0,0 +1,23 @@
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 Ver fichero

@@ -9,8 +9,8 @@ cd examples/WebTest
9 9
 # Install NPM dependencies
10 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 15
 # Install pods
16 16
 cd ios