Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_ai/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_ai.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_ai/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_ai.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_analytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_analytics/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_analytics.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_analytics/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_analytics.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_app_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_app_check/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_app_check.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_app_check/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_app_check.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_app_installations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_app_installations/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_app_installations.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_app_installations/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_app_installations.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ on:
paths:
- 'packages/firebase_auth/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_auth.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -33,6 +35,8 @@ on:
paths:
- 'packages/firebase_auth/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_auth.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
paths:
- 'packages/firebase_database/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_database.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -27,6 +29,8 @@ on:
paths:
- 'packages/firebase_database/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_database.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/e2e_tests_fdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
paths:
- 'packages/firebase_data_connect/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_fdc.yaml'
- '.github/actions/setup-flutterfire/**'
push:
Expand All @@ -20,6 +22,8 @@ on:
paths:
- 'packages/firebase_data_connect/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_fdc.yaml'
- '.github/actions/setup-flutterfire/**'
workflow_call:
Expand Down Expand Up @@ -266,7 +270,7 @@ jobs:
# connect. Retry only those infrastructure startup failures.
run: |
FLUTTER_DRIVE_TARGET="./integration_test/e2e_test.dart" \
FLUTTER_DRIVE_DRIVER="./test_driver/integration_test.dart" \
FLUTTER_DRIVE_DRIVER="${GITHUB_WORKSPACE}/tests/test_driver/integration_test.dart" \
FLUTTER_DRIVE_EXTRA_ARGS="--dart-define=CI=true" \
"${GITHUB_WORKSPACE}/.github/workflows/scripts/flutter-drive-web-retry.sh"
shell: bash
Expand Down Expand Up @@ -325,7 +329,7 @@ jobs:
run: |
mv ./web/wasm_index.html ./web/index.html
FLUTTER_DRIVE_TARGET="./integration_test/e2e_test.dart" \
FLUTTER_DRIVE_DRIVER="./test_driver/integration_test.dart" \
FLUTTER_DRIVE_DRIVER="${GITHUB_WORKSPACE}/tests/test_driver/integration_test.dart" \
FLUTTER_DRIVE_EXTRA_ARGS="--wasm --dart-define=CI=true" \
FLUTTER_DRIVE_TIMEOUT_SECONDS="300" \
FLUTTER_DRIVE_MAX_ATTEMPTS="2" \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_firestore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
paths:
- 'packages/cloud_firestore/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_firestore.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -30,6 +32,8 @@ on:
paths:
- 'packages/cloud_firestore/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_firestore.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
paths:
- 'packages/cloud_functions/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_functions.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -27,6 +29,8 @@ on:
paths:
- 'packages/cloud_functions/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_functions.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_messaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_messaging/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_messaging.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_messaging/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_messaging.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_performance/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_performance.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_performance/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_performance.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/e2e_tests_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
paths:
- 'packages/cloud_firestore/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_pipeline.yaml'
- '.github/actions/setup-flutterfire/**'
push:
Expand All @@ -20,6 +22,8 @@ on:
paths:
- 'packages/cloud_firestore/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_pipeline.yaml'
- '.github/actions/setup-flutterfire/**'
workflow_call:
Expand Down Expand Up @@ -154,7 +158,7 @@ jobs:
# connect. Retry only those infrastructure startup failures.
run: |
FLUTTER_DRIVE_TARGET="./integration_test/pipeline/pipeline_live_test.dart" \
FLUTTER_DRIVE_DRIVER="./test_driver/integration_test.dart" \
FLUTTER_DRIVE_DRIVER="${GITHUB_WORKSPACE}/tests/test_driver/integration_test.dart" \
FLUTTER_DRIVE_EXTRA_ARGS="--dart-define=CI=true" \
"${GITHUB_WORKSPACE}/.github/workflows/scripts/flutter-drive-web-retry.sh"
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_remote_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
paths:
- 'packages/firebase_remote_config/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_remote_config.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -29,6 +31,8 @@ on:
paths:
- 'packages/firebase_remote_config/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_remote_config.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_tests_storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
paths:
- 'packages/firebase_storage/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_storage.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand All @@ -27,6 +29,8 @@ on:
paths:
- 'packages/firebase_storage/**'
- 'packages/firebase_core/**'
# The web e2e driver is shared by every e2e app.
- 'tests/test_driver/**'
- '.github/workflows/e2e_tests_storage.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
- '.github/actions/setup-flutterfire/**'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reusable_e2e_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ jobs:
- '${{ inputs.package-path }}/pubspec.yaml'
- '${{ inputs.platform-interface-package && format('packages/*/{0}/**', inputs.platform-interface-package) || 'packages/__none__/**' }}'
- '${{ inputs.package-path }}/example/integration_test/**'
- '${{ inputs.package-path }}/example/test_driver/**'
- '${{ inputs.package-path }}/example/lib/**'
- '${{ inputs.package-path }}/example/pubspec.yaml'
- '.github/workflows/reusable_e2e_*.yaml'
Expand All @@ -125,9 +124,13 @@ jobs:
- '${{ inputs.package-path }}/example/macos/**'
web:
- *shared
# The `flutter drive` entrypoint shared by every e2e app (tests/).
- 'tests/test_driver/**'
- '${{ inputs.web-package && format('packages/*/{0}/**', inputs.web-package) || 'packages/__none__/**' }}'
- '${{ inputs.package-path }}/example/web/**'
windows:
- *shared
# Also the `flutter drive -d windows` entrypoint (reusable_e2e_windows.yaml).
- 'tests/test_driver/**'
- '${{ inputs.package-path }}/windows/**'
- '${{ inputs.package-path }}/example/windows/**'
5 changes: 3 additions & 2 deletions .github/workflows/reusable_e2e_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ jobs:
working-directory: ./.github/workflows/scripts
env:
FLUTTER_DRIVE_TARGET: './${{ inputs.test-target }}'
FLUTTER_DRIVE_DRIVER: './test_driver/integration_test.dart'
# One driver for every web e2e suite; it lives with the smoke app.
FLUTTER_DRIVE_DRIVER: '${{ github.workspace }}/tests/test_driver/integration_test.dart'
FLUTTER_DRIVE_EXTRA_ARGS: ${{ inputs.wasm && '--wasm --dart-define=CI=true' || '--dart-define=CI=true' }}
# Empty falls back to the retry script's own defaults (180s, 4 attempts).
FLUTTER_DRIVE_TIMEOUT_SECONDS: ${{ inputs.drive-timeout }}
Expand All @@ -218,7 +219,7 @@ jobs:
timeout-minutes: 20
env:
FLUTTER_DRIVE_TARGET: './${{ inputs.test-target }}'
FLUTTER_DRIVE_DRIVER: './test_driver/integration_test.dart'
FLUTTER_DRIVE_DRIVER: '${{ github.workspace }}/tests/test_driver/integration_test.dart'
FLUTTER_DRIVE_EXTRA_ARGS: ${{ inputs.wasm && '--wasm --dart-define=CI=true' || '--dart-define=CI=true' }}
# Empty falls back to the retry script's own defaults (180s, 4 attempts).
FLUTTER_DRIVE_TIMEOUT_SECONDS: ${{ inputs.drive-timeout }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable_e2e_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
run: |
cd ./.github/workflows/scripts
function Invoke-Drive {
firebase emulators:exec --project flutterfire-e2e-tests "cd ../../../$env:PACKAGE_PATH/example && flutter drive --target=.\$env:TEST_TARGET --driver=.\test_driver\integration_test.dart -d windows --verbose" 2>&1 | Tee-Object -FilePath output.log
firebase emulators:exec --project flutterfire-e2e-tests "cd ../../../$env:PACKAGE_PATH/example && flutter drive --target=.\$env:TEST_TARGET --driver=$env:GITHUB_WORKSPACE\tests\test_driver\integration_test.dart -d windows --verbose" 2>&1 | Tee-Object -FilePath output.log
$script:exitCode = $LASTEXITCODE
$script:output = Get-Content output.log -Raw
}
Expand All @@ -176,7 +176,7 @@ jobs:
run: |
cd $env:PACKAGE_PATH/example
function Invoke-Drive {
flutter drive --target=.\$env:TEST_TARGET --driver=.\test_driver\integration_test.dart -d windows --dart-define=CI=true --verbose 2>&1 | Tee-Object -FilePath output.log
flutter drive --target=.\$env:TEST_TARGET --driver=$env:GITHUB_WORKSPACE\tests\test_driver\integration_test.dart -d windows --dart-define=CI=true --verbose 2>&1 | Tee-Object -FilePath output.log
$script:exitCode = $LASTEXITCODE
$script:output = Get-Content output.log -Raw
}
Expand Down
Loading
Loading