setup-dart icon indicating copy to clipboard operation
setup-dart copied to clipboard

Flutter hint in the documentation

Open asashour opened this issue 3 years ago • 4 comments

On creating a new action, there is some hint about being used with Flutter

# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
  run: dart test

And since my project is actually Flutter, changing this to flutter test, gives the error

Flutter users should run flutter pub get instead of dart pub get.

And on changing the action to flutter pub get there is an error

flutter: command not found


I guess this action is for Dart, not Flutter. In this case, please change the action comments accordingly.

asashour avatar May 06 '22 10:05 asashour

Hi, can you clarify where you are seeing that message?

mit-mit avatar May 12 '22 06:05 mit-mit

In GitHub repository:

  • Click "Actions" image

  • New Workflow

image

  • Select Dart (Configure) image

The file generated would have this message

image

asashour avatar May 12 '22 06:05 asashour

The resolution here may be to recommend that people use a Flutter specific action instead of this dart action for testing their project.

devoncarew avatar Jul 28 '22 16:07 devoncarew