/
config.yml
157 lines (154 loc) · 3.58 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
workflows:
version: 2
node-multi-build:
jobs:
- node-v8
- node-v10
- eslint-v7
- eslint-v8
- ts-eslint-v4
- node-v12
- node-v14
- 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
- run:
name: Test
command: npm test
# - save_cache:
# key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
# paths:
# - node_modules
node-v8:
docker:
- image: node:8
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install eslint@6
command: |
npm install --save-exact eslint@6.8.0 @typescript-eslint/parser@3.10.1 typescript@4.0.8
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
node-v10:
docker:
- image: node:10
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install eslint@7 and @typescript-eslint/parser@4
command: |
npm install eslint@7 @typescript-eslint/parser@^4
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
eslint-v7:
docker:
- image: node:10
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
eslint-v8:
docker:
- image: node:14
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install eslint@8
command: |
npm install eslint@^8.0.0-0
- 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
command: |
npm install @typescript-eslint/parser@^4
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
node-v12:
<<: *node-base
docker:
- image: node:12
node-v14:
<<: *node-base
docker:
- image: node:14
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: Test
command: npm run lint