From e3dff64615c3860b20be37f3adc013e90015e75d Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Thu, 21 Jan 2021 14:49:56 -0600 Subject: [PATCH] ci: e2e ios --- .github/workflows/ios.yml | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/ios.yml diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml new file mode 100644 index 00000000..a239a9b1 --- /dev/null +++ b/.github/workflows/ios.yml @@ -0,0 +1,54 @@ +# Runs CI tasks on pull requests and pushes + +name: iOS End to End Tests + +on: + pull_request: + branches: + - dev + - master + push: + +jobs: + lint: + name: Lint + runs-on: macos-latest + timeout-minutes: 15 + env: + DEVELOPER_DIR: /Applications/Xcode_12.2.app + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: Cache Node.js modules + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + + - name: Install npm dependencies + run: npm i + + - name: Cache Pods + uses: actions/cache@v1 + id: podcache + with: + path: ios/Pods + key: pods-${{ hashFiles('**/Podfile.lock') }} + + - name: Install dependencies for Detox + run: | + brew tap wix/brew + brew install applesimutils + + - name: Run Test + run: npm run e2e:ios