Hello, I’m to circleCI and trying to get my jest tests to run.
I’d really like to use a workflow to combine my build job (compile a parser) and my test job (run the jest tests). When I put everything in one job like this it works:
version: 2.0
jobs:
build:
docker:
- image: circleci/node:10.16.0
steps:
- checkout
- run: npm install
- run: npm run compile-grammar
- run: npm test
But when I try to use an actual workflow like this
version: 2.0
jobs:
build:
docker:
- image: circleci/node:10.16.0
steps:
- checkout
- run: npm install
- run: npm run compile-grammar
test:
docker:
- image: circleci/node:10.16.0
steps:
- run: npm test
# Now that I have workflows, the default job of "build" shouldn't auto-trigger
workflows:
version: 2
build-test:
jobs:
- build
- test:
requires:
- build
I get the error Config does not conform to schema: {:workflows {:build-test {:jobs [nil {:test (not (map? nil)), :requires (not (map? a-clojure.lang.LazySeq))}]}}}