-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
config.yml
90 lines (86 loc) · 2.04 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
version: 2
unit_tests: &unit_tests
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Run unit tests.
command: npm run ci:test
unit_tests_12: &unit_tests_12
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Run unit tests.
command: npm run ci:test_12
jobs:
analysis:
docker:
- image: rollupcabal/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: npm ci --ignore-scripts
- run:
name: Run linting.
command: npm run lint
- run:
name: Run NPM Security Audit
command: npm run security
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
node-v6-latest:
docker:
- image: rollupcabal/circleci-node-v6:latest
<<: *unit_tests
node-v8-latest:
docker:
- image: rollupcabal/circleci-node-v8:latest
<<: *unit_tests
node-v10-latest:
docker:
- image: rollupcabal/circleci-node-v10:latest
<<: *unit_tests
node-v12-latest:
docker:
- image: rollupcabal/circleci-node-v12:latest
<<: *unit_tests_12
workflows:
version: 2
validate-test:
jobs:
- analysis:
filters:
tags:
only: /.*/
- node-v6-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v8-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v10-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v12-latest:
requires:
- analysis
filters:
tags:
only: /.*/