-
-
Notifications
You must be signed in to change notification settings - Fork 681
/
Copy pathconfig.yml
119 lines (116 loc) · 2.71 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
workflows:
version: 2
node-multi-build:
jobs:
- eslint-v6
- eslint-v7
- ts-eslint-v4
- node-v14
- node-v16
- lint
version: 2
jobs:
node-base: &node-base
docker:
- image: node
steps:
- run:
name: Versions
command: npm version
- checkout
# - restore_cache:
# keys:
# - v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm install --legacy-peer-deps
- run:
name: Test
command: npm test
# - save_cache:
# key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
# paths:
# - node_modules
eslint-v6:
docker:
- image: node:14
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install eslint@6
command: |
npm install --save-exact [email protected]
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
eslint-v7:
docker:
- image: node:14
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install eslint@7
command: |
npm install eslint@7
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
ts-eslint-v4:
docker:
- image: node:14
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install @typescript-eslint/parser@4 eslint@7
command: |
npm install @typescript-eslint/parser@^4 eslint@7
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
node-v14:
<<: *node-base
docker:
- image: node:14
node-v16:
<<: *node-base
docker:
- image: node:16
lint:
docker:
- image: node:14
steps:
- run:
name: Versions
command: npm version
- checkout
- restore_cache:
keys:
- v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm install
- save_cache:
key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Lint
command: npm run lint