Use flutter version from fvm

This commit is contained in:
PartyDonut 2025-01-05 14:45:18 +01:00
parent f445d8908b
commit 57b93574b4

View file

@ -14,11 +14,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Fetch version info
run: |
# Extract flutter_version from .fvmrc
FLUTTER_VERSION=$(jq -r '.flutter' .fvmrc)
echo "FLUTTER_VERSION=${FLUTTER_VERSION}" >> "$GITHUB_ENV"
shell: bash
- name: Set up Flutter
uses: subosito/flutter-action@v2.16.0
with:
channel: ${{ vars.FLUTTER_CHANNEL }}
flutter-version: ${{ vars.FLUTTER_VERSION }}
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
@ -26,10 +33,10 @@ jobs:
- name: Get dependencies
run: flutter pub get
- name: Setup dart
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Analyze Dart
- name: Analyze Dart
uses: invertase/github-action-dart-analyzer@v3
with:
custom-lint: true