Jake Worth

TIL: Test Your Circle CI Configuration Locally

Published: November 14, 2022 2 min read

  • til

CircleCI is configured via a file called .circleci/config.yml. I’ve found the combination of YAML, a proprietary DSL, and the remote nature of CI to be to be a bit brittle iterate on. Change a config, trigger a build, wait, diagnose any configuration issues online, and repeat the cycle.

Why not validate your config locally? Following these instructions, you can do just that with the config validate command:

$ circleci config validate
Config file at .circleci/config.yml is valid.

Get the confidence to push a build by iterating locally.

✉️ Get better at programming by learning with me. Subscribe to Jake Worth's Newsletter for bi-weekly ideas, creations, and curated resources from across the world of programming. Join me today!


Blog of Jake Worth, software engineer in Maine.

© 2022 Jake Worth.