diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 33158ac0..4e1f2609 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -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: diff --git a/scripts/patch_e2e.sh b/scripts/patch_e2e.sh index 266866c1..152e0e20 100755 --- a/scripts/patch_e2e.sh +++ b/scripts/patch_e2e.sh @@ -12,7 +12,9 @@ # - Android emulator must be running. # - Shorebird must be installed. # -# Usage: ./patch_e2e.sh +# Usage: ./patch_e2e.sh + +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