-
-
Notifications
You must be signed in to change notification settings - Fork 768
/
config.yml
45 lines (40 loc) · 886 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: 2.1
references:
x-workdir: &work-dir
working_directory: ~/source
x-save-workspace: &persist-step
persist_to_workspace:
root: ~/source
paths:
- .
x-attach: &attach-step
attach_workspace:
at: .
jobs:
install-dependencies:
<<: *work-dir
docker:
- image: circleci/node:10
environment:
HUSKY_SKIP_INSTALL: 1
steps:
- checkout
- restore_cache:
keys:
- v2-npm-{{ checksum "package-lock.json" }}
- run:
name: Install dependencies
command: |
if [ ! -d node_modules ]; then
npm ci
fi
- save_cache:
key: v2-npm-{{ checksum "package-lock.json" }}
paths:
- node_modules
- *persist-step
workflows:
version: 2
sinon-workflow:
jobs:
- install-dependencies