The following is invalid config in v2 (but valid if the version was 2.1 as commands is a 2.1 feature)
version: 2
commands:
install_terraform:
steps:
- run:
name: Install Terraform
command: sudo ./.circleci/install-terraform.sh
jobs:
validate_terraform:
docker:
- image: circleci/node:8.10.0
steps:
- install_terraform
- run: apk add --update make
- run: make validate
workflows:
version: 2
deploy_cdn:
jobs:
- validate_terraform
In ci I get the following error, as expected
Build-agent version 1.0.11727-b0960fc9 (2019-05-23T02:12:54+0000)
Configuration errors: 1 error occurred:
* In step 2 definition: step type "install_terraform" is not a valid type
But the cli circleci config validate
does not surface this error