feat: fvm support (#383)

* feat: added support for .fvmrc files, so it can fetch the flutter version from there

* feat: changed README description of action to accomodate new changes
This commit is contained in:
Pedro Monteiro
2026-03-18 13:18:09 +00:00
committed by GitHub
parent 0ca7a949e7
commit 6622f58c44
3 changed files with 24 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ steps:
- run: flutter --version
```
### Use version from pubspec.yaml
### Use version from pubspec.yaml or FVM config
This is inspired by [`actions/setup-go`](https://github.com/actions/setup-go).
@@ -35,7 +35,7 @@ steps:
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml # path to pubspec.yaml
flutter-version-file: pubspec.yaml # path to pubspec.yaml or .fvmrc or .fvm/fvm_config.json
- run: flutter --version
```