setup-dart
setup-dart copied to clipboard
Flutter hint in the documentation
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 getinstead ofdart 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.
Hi, can you clarify where you are seeing that message?
In GitHub repository:
-
Click "Actions"

-
New Workflow

- Select Dart (Configure)

The file generated would have this message

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