1 | version: 2
|
2 |
|
3 | workflows:
|
4 | version: 2
|
5 | tests:
|
6 | jobs:
|
7 | - test
|
8 |
|
9 | jobs:
|
10 | test:
|
11 | docker:
|
12 | - image: circleci/node:8
|
13 | steps:
|
14 | - checkout
|
15 | - run:
|
16 | name: Install dependencies
|
17 | command: npm install
|
18 | - run:
|
19 | name: Lint code
|
20 | command: npm run lint
|
21 | - run:
|
22 | name: Run tests
|
23 | command: npm test
|
24 | - run:
|
25 | name: Semantic release
|
26 | command: npm run semantic-release || true
|