Jamon Holmgren 5 vuotta sitten
vanhempi
commit
a32cc59e70
2 muutettua tiedostoa jossa 25 lisäystä ja 2 poistoa
  1. 23
    0
      .github/workflows/detox.yml
  2. 2
    2
      bin/detox

+ 23
- 0
.github/workflows/detox.yml Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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