Skip to content

Commit f1fb6ca

Browse files
committed
ci: update workflows to use Flutter 3.27.x and standardize dependency installation
1 parent eab0029 commit f1fb6ca

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
sdk: [stable]
17+
flutter-version: [3.27.x]
1718

1819
steps:
1920
- name: Checkout repository
@@ -24,8 +25,14 @@ jobs:
2425
with:
2526
sdk: ${{ matrix.sdk }}
2627

28+
- name: Set up Flutter SDK
29+
uses: subosito/flutter-action@v2
30+
with:
31+
channel: stable
32+
flutter-version: ${{ matrix.flutter-version }}
33+
2734
- name: Install dependencies
28-
run: dart pub get
35+
run: flutter pub get
2936

3037
- name: Extract version from pubspec.yaml
3138
id: get_version

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
sdk: [3.7.2, stable]
15+
sdk: [stable]
16+
flutter-version: [3.27.x]
1617

1718
steps:
1819
- name: Checkout Code
@@ -40,6 +41,7 @@ jobs:
4041
strategy:
4142
matrix:
4243
sdk: [stable]
44+
flutter-version: [3.27.x]
4345

4446
steps:
4547
- name: Checkout Code
@@ -50,8 +52,14 @@ jobs:
5052
with:
5153
sdk: ${{ matrix.sdk }}
5254

55+
- name: Install Flutter SDK
56+
uses: subosito/flutter-action@v2
57+
with:
58+
channel: stable
59+
flutter-version: ${{ matrix.flutter-version }}
60+
5361
- name: Install dependencies
54-
run: dart pub get
62+
run: flutter pub get
5563

5664
- name: Run Dart Analyzer (Lint)
5765
run: dart analyze

.github/workflows/web.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ jobs:
4141
channel: stable
4242
flutter-version: 3.27.x
4343

44-
- name: Check Flutter Version
45-
run: flutter --version
46-
4744
- name: Install Dependencies
4845
run: flutter pub get
4946

0 commit comments

Comments
 (0)