subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.16k stars 193 forks source link

Is there dart 3 update? #225

Closed Add00w closed 1 year ago

Add00w commented 1 year ago

The current Dart SDK version is 2.19.0.

Because .... requires SDK version >=3.0.0 <4.0.0, version solving failed.

Add00w commented 1 year ago

@subosito

rk0cc commented 1 year ago

I got no problem with same SDK constraint which applied channel: stable in with section.

It may be better if you can provide few lines in your action's configuration to investigate the problem.

Add00w commented 1 year ago

I got no problem with same SDK constraint which applied channel: stable in with section.

It may be better if you can provide few lines in your action's configuration to investigate the problem.

name: Analyze and test the source code
on:
  pull_request:
    branches:
      - develop
jobs:
  test:
    name: Analyze the source code
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: subosito/flutter-action@v2
        with:
          flutter-version: '3.10.0'
          channel: 'stable'
      - name: Install packages
        run: flutter pub get
      - name: Generate localizations
        run:  flutter gen-l10n
      - name: Generate configs
        run: flutter pub run build_runner build --delete-conflicting-outputs
      - name: Linter
        run: flutter analyze
      - name: Test the code
        run: flutter test

Here is sample

HannesGitH commented 1 year ago

another parameter sdk-version would also be super nice, so we can use this action like:

workflow snippet ```yaml - uses: subosito/flutter-action@v2 with: flutter-version: '3.10.0' channel: 'stable' sdk-version: '3.0.1' ```
HannesGitH commented 1 year ago

nvm the dart version is directly related to the flutter version (see https://docs.flutter.dev/release/archive)

you (@Add00w) probably simply need to use flutter-version: '3.10.0' or higher