Skip to content

Commit 7daa3f5

Browse files
committed
👷 Add the minimum Flutter requirement check to the action workflow
1 parent 4ad3728 commit 7daa3f5

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/runnable.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Runnable (stable)
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
37
on:
48
push:
59
branches:
@@ -10,22 +14,27 @@ on:
1014
paths-ignore:
1115
- "**.md"
1216

17+
env:
18+
MINIMUM_FLUTTER_VERSION: '3.16.9'
19+
1320
jobs:
1421
analyze:
15-
name: Analyze on ${{ matrix.os }}
22+
name: Analyze on ${{ matrix.os }} with ${{ matrix.flutter-version }} Flutter
1623
runs-on: ${{ matrix.os }}
1724
strategy:
1825
matrix:
1926
os: [ ubuntu-latest ]
27+
flutter-version: [ min, latest ]
2028
steps:
21-
- uses: actions/checkout@v3
22-
- uses: actions/setup-java@v3
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-java@v4
2331
with:
24-
distribution: 'adopt'
25-
java-version: '11.x'
26-
- uses: subosito/flutter-action@v2
32+
distribution: 'zulu'
33+
java-version: '17'
34+
- uses: flutter-actions/setup-flutter@v4
2735
with:
28-
channel: 'stable'
36+
channel: stable
37+
version: ${{ matrix.flutter-version == 'min' && env.MINIMUM_FLUTTER_VERSION || 'latest' }}
2938
- name: Log Dart/Flutter versions
3039
run: |
3140
dart --version

0 commit comments

Comments
 (0)