Adding a workflows section to the config YML script

We will add the workflows section to the bottom of our config YML script, but we could also add it to the beginning of our config YML script. Here is the updated config YML script:

...workflows:    version: 2    build_test_and_deploy:        jobs:            - build            - test:                requires:                    - build            - deploy:                requires:                    - test

Once we finish updating the config YML script, we should ensure that our config YML script is still valid by using CircleCI CLI, like this:

It looks like we have an issue in our config YML script in line 19:

...- run:    name: Run Tests and Run Code Coverage with NYC    command: |    echo "Generate Code Coverage" ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.