1 | version: 2 # use CircleCI 2.0
|
2 | jobs: # a collection of steps
|
3 | build: # runs not using Workflows must have a `build` job as entry point
|
4 | working_directory: ~/mern-starter # directory where steps will run
|
5 | docker: # run the steps with Docker
|
6 | - image: node:latest
|
7 | steps: # a collection of executable commands
|
8 | - checkout # special step to check out source code to working directory
|
9 | - run:
|
10 | name: install
|
11 | command: npm ci
|
12 | - run: # run tests
|
13 | name: test
|
14 | command: npm run test-ci |
\ | No newline at end of file |