-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.drone.yml
52 lines (45 loc) · 857 Bytes
/
.drone.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
46
47
48
49
50
51
52
kind: pipeline
type: docker
name: build
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: install
image: node:lts
commands:
- node -v
- npm -v
- yarn --version
- yarn install
- name: testing
image: node:lts
commands:
- yarn test -- --colors --forceExit
- name: coverage
image: node:lts
commands:
- yarn coverage
- name: build
image: node:lts
commands:
- yarn build
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
host:
path: /tmp/cache