From a32cc59e707ce9ed77c83dedb83ff6271b73f2ce Mon Sep 17 00:00:00 2001 From: Jamon Holmgren Date: Tue, 3 Sep 2019 18:04:03 +0200 Subject: [PATCH] Jetify npx --- .github/workflows/detox.yml | 23 +++++++++++++++++++++++ bin/detox | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/detox.yml diff --git a/.github/workflows/detox.yml b/.github/workflows/detox.yml new file mode 100644 index 0000000..d3fa016 --- /dev/null +++ b/.github/workflows/detox.yml @@ -0,0 +1,23 @@ +workflow "Detox CI Tests" { + on = "push" +} + +jobs: + tests: + name: "Running tests" + runs-on: "macOS-latest" + steps: + - name: Setup - Install Homebrew + run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + - name: Setup - Install Node + run: brew install node + - name: Setup - Install React Native CLI + run: npm install -g react-native-cli + - name: Setup - Install NPM Dependencies + run: yarn + - name: Setup - Install CocoaPods CLI + run: sudo gem install cocoapods + - name: Setup - Verify + run: ./bin/setup + - name: Run tests + run: yarn ci:test diff --git a/bin/detox b/bin/detox index 38e3139..5618175 100755 --- a/bin/detox +++ b/bin/detox @@ -9,8 +9,8 @@ cd examples/WebTest # Install NPM dependencies yarn -# Jetify deps -npm jetify +# Jetify deps (sudo if it fails for CI) +npx jetify || sudo npx jetify # Install pods cd ios