ci: run e2e tests against multiple Flutter versions (#2340)

This commit is contained in:
Felix Angelov
2024-07-11 12:13:28 -05:00
committed by GitHub
parent 9806202208
commit b02d10f8f0
2 changed files with 12 additions and 5 deletions
+8 -3
View File
@@ -12,10 +12,15 @@ on:
env:
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.2
jobs:
patch:
strategy:
fail-fast: false
matrix:
flutter-version: [3.22.2, 3.19.6]
runs-on: ubuntu-latest
env:
@@ -49,7 +54,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
flutter-version: ${{ matrix.flutter-version }}
cache: true
- name: 🤖 AVD Cache
@@ -77,7 +82,7 @@ jobs:
with:
api-level: 29
arch: x86_64
script: ./scripts/patch_e2e.sh
script: ./scripts/patch_e2e.sh ${{ matrix.flutter-version }}
cli:
strategy:
+4 -2
View File
@@ -12,7 +12,9 @@
# - Android emulator must be running.
# - Shorebird must be installed.
#
# Usage: ./patch_e2e.sh
# Usage: ./patch_e2e.sh <flutter-version>
FLUTTER_VERSION=$1
# Intentionally including a space in the path.
TEMP_DIR=$(mktemp -d -t 'shorebird workspace-XXXXX')
@@ -35,7 +37,7 @@ echo "base_url: https://api-dev.shorebird.dev" >> shorebird.yaml
APP_ID=$(cat shorebird.yaml | grep 'app_id:' | awk '{print $2}')
# Create a new release on Android
shorebird release android -v
shorebird release android --flutter-version=$FLUTTER_VERSION -v
# Run the app on Android and ensure that the print statement is printed.
while IFS= read line; do