mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
Use flutter version from fvm
This commit is contained in:
parent
f445d8908b
commit
57b93574b4
1 changed files with 10 additions and 3 deletions
13
.github/workflows/checks.yaml
vendored
13
.github/workflows/checks.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue