Skip to content

Commit c7163f6

Browse files
ci: setup fvm on pipeline
1 parent 5c6ed77 commit c7163f6

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.fvmrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"flutter": "stable",
3+
"flavors": {
4+
"stable": "stable",
5+
"beta": "beta"
6+
}
7+
}

.github/workflows/base.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,17 @@ jobs:
2828
with:
2929
paths: "**/*.md"
3030

31+
- name: Get Flutter version by FVM
32+
uses: kuhnroyal/flutter-fvm-config-action@v2
33+
id: fvm-config-action
34+
with:
35+
path: '.fvmrc'
36+
flavor: 'stable'
37+
3138
- uses: subosito/flutter-action@v2
3239
with:
33-
channel: 'stable'
34-
# use the build-in cache from Subosito
40+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
41+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
3542
cache: true
3643

3744
- name: Install dependencies

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# The .vscode folder contains launch configuration and tasks you configure in
2020
# VS Code which you may wish to be included in version control, so this line
2121
# is commented out by default.
22-
#.vscode/
22+
.vscode/
2323

2424
# Flutter/Dart/Pub related
2525
**/doc/api/

0 commit comments

Comments
 (0)