Skip to content

Commit 722f6d0

Browse files
committed
chore: restructure for reuse
1 parent 04034bc commit 722f6d0

File tree

1 file changed

+37
-10
lines changed

1 file changed

+37
-10
lines changed

.circleci/config.yml

+37-10
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,62 @@
11
version: 2.1
22

33
commands:
4-
test:
4+
install:
55
steps:
6-
- run:
7-
name: Versions
8-
command: npm version
9-
- checkout
10-
- restore_cache:
11-
keys:
12-
- v1-dependencies-{{ checksum "yarn.lock" }}
136
- run:
147
name: Install dependencies
158
command: yarn install --ignore-engines
9+
audit:
10+
steps:
1611
- run:
1712
name: Audit dependencies
1813
command: yarn audit
14+
build:
15+
steps:
1916
- run:
2017
name: Build packages
2118
command: yarn build
19+
lint:
20+
steps:
2221
- run:
2322
name: Lint project
2423
command: yarn lint
24+
deps:
25+
steps:
2526
- run:
2627
name: Check dependencies
2728
command: yarn deps
29+
test:
30+
steps:
2831
- run:
2932
name: Test
3033
command: yarn test
31-
- save-npm-cache
32-
save-npm-cache:
34+
run-node-6:
35+
steps:
36+
- checkout
37+
- restore_cache:
38+
keys:
39+
- v1-dependencies-{{ checksum "yarn.lock" }}
40+
- install
41+
- build
42+
- lint
43+
- deps
44+
- test
45+
- save-cache
46+
run-node:
47+
steps:
48+
- checkout
49+
- restore_cache:
50+
keys:
51+
- v1-dependencies-{{ checksum "yarn.lock" }}
52+
- install
53+
- audit
54+
- build
55+
- lint
56+
- deps
57+
- test
58+
- save-cache
59+
save-cache:
3360
steps:
3461
- save_cache:
3562
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "yarn.lock" }}

0 commit comments

Comments
 (0)