name: Development Client e2e on: workflow_dispatch: {} pull_request: paths: - .github/workflows/development-client-e2e.yml - packages/expo-dev-*/** push: branches: [main] paths: - .github/workflows/development-client-e2e.yml - packages/expo-dev-*/** concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} cancel-in-progress: true jobs: detox_e2e: runs-on: macos-13 strategy: matrix: api-level: [33] steps: - name: ๐Ÿ‘€ Checkout uses: actions/checkout@v3 - name: โž• Add `bin` to GITHUB_PATH run: echo "$(pwd)/bin" >> $GITHUB_PATH - name: ๐Ÿบ Install required tools run: | brew tap wix/brew brew install applesimutils brew install watchman - name: ๐Ÿ’Ž Setup Ruby and install gems uses: ruby/setup-ruby@v1 with: bundler-cache: true ruby-version: 3.2.2 - name: ๐Ÿ’Ž Install cocoapods run: sudo gem install cocoapods - name: โ™ป๏ธ Restore caches uses: ./.github/actions/expo-caches id: expo-caches with: gradle: 'true' yarn-workspace: 'true' - name: ๐Ÿค– Set up android emulator uses: ./.github/actions/use-android-emulator with: avd-api: ${{ matrix.api-level }} avd-name: avd-${{ matrix.api-level }} - name: ๐Ÿงถ Install `expo-test-runner` run: | 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') working-directory: packages/expo-dev-client - name: ๐Ÿงช Run tests run: | yarn e2e working-directory: packages/expo-dev-client - name: ๐Ÿ’พ Store artifacts of build failures if: failure() uses: actions/upload-artifact@v3 with: name: expo-dev-client-e2e-artifacts path: packages/expo-dev-client/artifacts