Skip to content
Open
Changes from 2 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
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,24 @@ on:
branches: [ master ]

jobs:
setup_flutter_versions:
runs-on: ubuntu-latest
outputs:
flutter-versions: ${{ steps.id_flutter_versions.outputs.versions }}
steps:
- name: Fetch Flutter versions
id: id_flutter_versions
run: |
VERSIONS=$(curl -s https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json | jq -c '[.releases | map(select(.channel == "stable")) | group_by(.version | split(".")[:2] | join(".")) | map(.[0]) | sort_by(.release_date) | reverse | .[:5] | map(.version)] | flatten + ["stable", "beta"]')
Copy link
Collaborator

@navaronbracke navaronbracke Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bash-fu isn't very strong, so just to double check that this does the following?

Grab the last 4 stable releases, taking the most recent patch version (so for example 3.35.99) and add the current "stable" + "beta" to it?

Can we move this to a script that gets its own unit test?

TIL about https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json

Also, we now test 6! stable releases, which is way mor than Flutter's own policy of "stable" - 2?

echo "versions=$VERSIONS" >> $GITHUB_OUTPUT

test_flutter_versions:
needs: setup_flutter_versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flutter: [ '3.24.0', '3.27.0', '3.29.0', '3.32.0', '3.35.0', 'stable', 'beta' ]
flutter: ${{ fromJson(needs.setup_flutter_versions.outputs.flutter-versions) }}
name: Tests on Flutter ${{ matrix.flutter }}
steps:
- uses: actions/checkout@v4
Expand Down