Skip to content

[UPD] TESTS - workflow - Try to increase the timeout limit #16

[UPD] TESTS - workflow - Try to increase the timeout limit

[UPD] TESTS - workflow - Try to increase the timeout limit #16

Workflow file for this run

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