[UPD] TESTS - workflow - Try to increase the timeout limit #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: π E2E Tests | |
| env: | |
| EXPO_PUBLIC_API_URL: ${{ vars.API_URL }} | |
| EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }} | |
| EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }} | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [test/e2e, test/e2e/**] | |
| pull_request: | |
| types: [closed] | |
| branches: [main] | |
| jobs: | |
| e2e-full: | |
| name: π Full E2E Tests | |
| if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || github.event_name == 'workflow_dispatch' || github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π Enable KVM | |
| run: sudo chmod 777 /dev/kvm | |
| - name: π Setup repo | |
| uses: actions/checkout@v4 | |
| - name: π Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: π Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'pnpm' | |
| - name: π Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| - name: π¨ Prebuild & Build APK (debug) | |
| run: | | |
| APP_ENV=production npx expo prebuild --clean --platform android | |
| cd android && ./gradlew assembleDebug -PbundleInDebug=true | |
| - name: π Install Maestro | |
| run: curl -Ls "https://get.maestro.mobile.dev" | bash && echo "$HOME/.maestro/bin" >> $GITHUB_PATH | |
| - name: π€ Run full E2E tests on emulator | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: 34 | |
| arch: x86_64 | |
| emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -prop persist.sys.locale=en-US -prop persist.sys.language=en -prop persist.sys.country=US | |
| script: | | |
| adb install android/app/build/outputs/apk/debug/app-debug.apk | |
| pnpm test:e2e |