Skip to content

test(flutter): UI e2e with Maestro (experimental) #4

test(flutter): UI e2e with Maestro (experimental)

test(flutter): UI e2e with Maestro (experimental) #4

Workflow file for this run

name: e2e-sentry-flutter
on:
push:
branches:
- main
- release/**
pull_request:
paths:
- "!**/*.md"
- "!**/class-diagram.svg"
- ".github/workflows/e2e_flutter.yml"
- "dart/**"
- "flutter/**"
- "e2e_test/flutter/**"
env:
SENTRY_AUTH_TOKEN_E2E: ${{ secrets.SENTRY_AUTH_TOKEN_E2E }}
SENTRY_DIST: 1
jobs:
cancel-previous-workflow:
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # [email protected]
with:
access_token: ${{ github.token }}
build:
name: E2E Flutter
runs-on: macos-latest
timeout-minutes: 30
defaults:
run:
working-directory: ./e2e_test/flutter
strategy:
fail-fast: false
matrix:
sdk: [stable, beta]
steps:
- uses: actions/checkout@v4
- name: Install Maestro
run: brew tap mobile-dev-inc/tap && brew install mobile-dev-inc/tap/[email protected]
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # [email protected]
with:
channel: ${{ matrix.sdk }}
- run: flutter upgrade
- name: Pub Get
run: flutter pub get
- name: Build App
# if: env.SENTRY_AUTH_TOKEN != null
run: |
flutter build ios --debug --simulator --obfuscate --split-debug-info=./
xcrun simctl install Booted build/ios/iphonesimulator/Runner.app
- name: Run Maestro
run: maestro test flow.yaml
# analyze:
# uses: ./.github/workflows/analyze.yml
# with:
# package: e2e_test/flutter
# panaThreshold: 0