Skip to content

Commit f5afcdb

Browse files
committed
feat: update circleci to use make commands
1 parent 17dd07e commit f5afcdb

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

.circleci/config.yml

+12-25
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,25 @@ aliases:
33
- &node_version node:12.14.1
44

55
jobs:
6-
lint:
7-
docker:
8-
- image: *node_version
6+
test:
7+
machine:
8+
docker_layer_caching: true
99
working_directory: ~/cypress-image-diff
1010
steps:
1111
- checkout
12-
- run: npm ci
12+
- run: npm ci
13+
- run:
14+
name: Build docker
15+
command: make build
1316
- run:
1417
name: Run eslint
15-
command: npm run lint
16-
17-
unit:
18-
docker:
19-
- image: *node_version
20-
working_directory: ~/cypress-image-diff
21-
steps:
22-
- checkout
23-
- run: npm ci
18+
command: make lint-test
2419
- run:
25-
name: Run unit tests
26-
command: npm run test:unit
27-
28-
e2e:
29-
docker:
30-
- image: *node_version
31-
working_directory: ~/cypress-image-diff
32-
steps:
33-
- checkout
34-
- run: npm ci
20+
name: Run unit
21+
command: make unit-test
3522
- run:
36-
name: Run e2e tests
37-
command: npm run test:e2e
23+
name: Run eslint
24+
command: make e2e-test
3825

3926
build_and_publish:
4027
docker:

0 commit comments

Comments
 (0)