Skip to content

adjust flutter version in cicd #45

adjust flutter version in cicd

adjust flutter version in cicd #45

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
flutter-version: 3.24.3
jobs:
verified:
runs-on: ubuntu-22.04
needs:
- analyze
- format
- publish-dry-run
- test
steps:
- run: echo "Green Acres is the place to be"
analyze:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
channel: 'stable'
- name: analyze
run: flutter analyze
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
channel: 'stable'
- name: format
run: dart format lib test --set-exit-if-changed
test:
runs-on: ubuntu-22.04
strategy:
matrix:
flutter-version: [ '3.10.0', "${{ env.flutter-version }}" ]

Check failure on line 49 in .github/workflows/verify.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/verify.yml (Line: 49, Col: 38): Unrecognized named-value: 'env'. Located at position 1 within expression: env.flutter-version
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: 'stable'
- name: test
run: flutter test
publish-dry-run:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
channel: 'stable'
- name: publish dry run
run: flutter packages pub publish --dry-run