Using Workflows in CircleCI

Workflows in CircleCI are a way to run parallel build jobs and can be used to define a collection of jobs and to specify a job order. Let us add a workflows field to the go-template-example-with-circle-ci (https://github.com/packtci/go-template-example-with-circle-ci) configuration YML script:

version: 2jobs:    build:        ...    integration:        ....workflows:    version: 2    build_and_integration:        jobs:            - build            - integration

In this workflow, we create two parallel jobs called build and integration respectively. They are independent of each other and this will help speed up the build process.

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.