We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e178d commit 474e512Copy full SHA for 474e512
1 file changed
.github/workflows/ci.yml
@@ -1,3 +1,4 @@
1
+# .github/workflows/ci.yml
2
name: CI
3
on:
4
push: { branches: [ main ] }
@@ -10,9 +11,20 @@ jobs:
10
11
flutter: [ '3.24.0', 'stable' ] # 3.24.0 = Dart 3.5系, stable = 最新
12
steps:
13
- uses: actions/checkout@v4
14
+
15
+ # stable(最新)用:channelのみ指定
16
- uses: subosito/flutter-action@v2
17
+ if: ${{ matrix.flutter == 'stable' }}
18
with:
19
+ channel: stable
20
21
+ # 固定バージョン用:flutter-versionを指定(必要ならchannelもstable)
22
+ - uses: subosito/flutter-action@v2
23
+ if: ${{ matrix.flutter != 'stable' }}
24
+ with:
25
26
flutter-version: ${{ matrix.flutter }}
27
28
- run: flutter --version && dart --version
29
- run: flutter pub get
30
- run: dart analyze
0 commit comments