1name: Development Client latest e2e 2 3on: 4 workflow_dispatch: {} 5 schedule: 6 - cron: '0 0 * * SUN' # 0:00 AM UTC time every Sunday 7 8concurrency: 9 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} 10 cancel-in-progress: true 11 12jobs: 13 detox_latest_e2e: 14 runs-on: macos-11 15 steps: 16 - name: Checkout 17 uses: actions/checkout@v2 18 - name: Install required tools 19 run: | 20 brew tap wix/brew 21 brew install applesimutils 22 brew install watchman 23 echo "$(pwd)/bin" >> $GITHUB_PATH 24 - name: Setup Ruby and install gems 25 uses: ruby/setup-ruby@v1 26 with: 27 bundler-cache: true 28 - name: Install cocoapods 29 run: sudo gem install cocoapods 30 - name: Set up android emulator 31 uses: reactivecircus/android-emulator-runner@v2 32 with: 33 api-level: 29 34 avd-name: DevClientEmulator 35 script: echo "expo is awesome" 36 - name: Install `expo-test-runner` 37 run: | 38 yarn global add expo-test-runner@$(cat package.json | grep '"expo-test-runner": "[0-9]*\.[0-9]*\.[0-9]*' | head -n 1 | awk '{print $2}' | sed 's/"//g; s/,//g') 39 working-directory: packages/expo-dev-client 40 - name: ♂️ Run tests 41 run: | 42 yarn latest-e2e 43 working-directory: packages/expo-dev-client 44 - name: Store artifacts of build failures 45 if: failure() 46 uses: actions/upload-artifact@v2 47 with: 48 name: expo-dev-client-latest-e2e-artifacts 49 path: packages/expo-dev-client/artifacts 50