Here's my code
version: 2.1
orbs:
flutter: circleci/[email protected]
jobs:
build:
working_directory: ~/project
docker:
- image: "cirrusci/flutter"
steps:
- checkout
- run: flutter main.dart
test:
working_directory: ~/project
docker:
- image: "cirrusci/flutter"
steps:
- checkout
- run: flutter widget_test.dart
workflows:
build_and_test:
jobs:
- build
- test:
requires:
- build
I got this error from the CircleCI:
Unable to parse YAML # mapping values are not allowed here # in 'string', line 3, column 5
You can use this YAML script to achieve your workflow: