Skip to content

Commit a57d18f

Browse files
committed
Update
1 parent de5ae0f commit a57d18f

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

.circleci/config.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,37 @@
11
version: 2
22
jobs:
33
build:
4-
working_directory: ~/mern-starter
5-
# The primary container is an instance of the first image listed. The job's commands run in this container.
64
docker:
7-
- image: circleci/node:4.8.2-jessie
8-
# The secondary container is an instance of the second listed image which is run in a common network where ports exposed on the primary container are available on localhost.
9-
- image: mongo:3.4.4-jessie
5+
- image: circleci/node:10.0.0
106
steps:
117
- checkout
128
- run:
13-
name: Update npm
14-
command: 'sudo npm install -g npm@latest'
15-
- restore_cache:
16-
key: dependency-cache-{{ checksum "package.json" }}
17-
- run:
18-
name: Install npm wee
9+
name: Install Dependencies
1910
command: npm install
20-
- save_cache:
21-
key: dependency-cache-{{ checksum "package.json" }}
22-
paths:
23-
- node_modules
2411
lint_and_style:
2512
docker:
2613
- image: circleci/node:10.0.0
2714
steps:
2815
- checkout
29-
- run: npm run lint
16+
- run:
17+
name: Lint your lib
18+
command: npm run lint
3019
test:
3120
docker:
3221
- image: circleci/node:10.0.0
3322
steps:
3423
- checkout
35-
- run: npm test
24+
- run:
25+
name: Test your code with AVA
26+
command: npm test
3627
test_style:
3728
docker:
3829
- image: circleci/node:10.0.0
3930
steps:
4031
- checkout
41-
- run: npm run style
32+
- run:
33+
name: Check style with Prettier
34+
command: npm run style
4235
workflows:
4336
version: 2
4437
build_and_test:

0 commit comments

Comments
 (0)