forked from ruilisi/fortune-sheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
62 lines (59 loc) · 1.46 KB
/
.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
53
54
55
56
57
58
59
60
61
62
---
kind: pipeline
type: kubernetes
name: default
platform:
os: linux
arch: arm64
volumes:
- name: drone-cache-volume
host:
path: /var/lib/cache
steps:
- name: restore-cache
image: docker.mirrors.ustc.edu.cn/meltwater/drone-cache:dev
settings:
backend: 'filesystem'
restore: true
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}'
mount:
- node_modules
volumes:
- name: drone-cache-volume
path: /tmp/cache
- name: install-pkgs
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn install --prod false --pure-lockfile --cache-folder /tmp/cache/yarn-cache
- name: lint
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn lint
depends_on:
- install-pkgs
- name: tsc
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn tsc
depends_on:
- install-pkgs
- name: test
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn test
depends_on:
- install-pkgs
- name: rebuild-cache
image: docker.mirrors.ustc.edu.cn/meltwater/drone-cache:dev
pull: never
settings:
backend: 'filesystem'
rebuild: true
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}'
mount:
- node_modules
volumes:
- name: drone-cache-volume
path: /tmp/cache
depends_on:
- install-pkgs