Skip to content

Commit 474e512

Browse files
feat: CIワークフローのFlutterバージョン管理を強化
- stableバージョンと固定バージョンのFlutter設定を追加 - 各バージョンに応じたchannel指定を実施し、CIの柔軟性を向上
1 parent 46e178d commit 474e512

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# .github/workflows/ci.yml
12
name: CI
23
on:
34
push: { branches: [ main ] }
@@ -10,9 +11,20 @@ jobs:
1011
flutter: [ '3.24.0', 'stable' ] # 3.24.0 = Dart 3.5系, stable = 最新
1112
steps:
1213
- uses: actions/checkout@v4
14+
15+
# stable(最新)用:channelのみ指定
1316
- uses: subosito/flutter-action@v2
17+
if: ${{ matrix.flutter == 'stable' }}
1418
with:
19+
channel: stable
20+
21+
# 固定バージョン用:flutter-versionを指定(必要ならchannelもstable)
22+
- uses: subosito/flutter-action@v2
23+
if: ${{ matrix.flutter != 'stable' }}
24+
with:
25+
channel: stable
1526
flutter-version: ${{ matrix.flutter }}
27+
1628
- run: flutter --version && dart --version
1729
- run: flutter pub get
1830
- run: dart analyze

0 commit comments

Comments
 (0)