-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
config.yml
131 lines (128 loc) · 3.19 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
version: 2.1
orbs:
win: circleci/windows@2.4.0
jobs:
analysis:
docker:
- image: rollupcabal/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Installing Dependencies
command: npm ci --ignore-scripts
- run:
name: Running linting
command: npm run ci:lint
- run:
name: Running NPM Security Audit
command: npm run security
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
node-v10-latest:
docker:
- image: rollupcabal/circleci-node-v10:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Running tests
command: npm run ci:test
node-v12-latest:
docker:
- image: rollupcabal/circleci-node-v12:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Running tests
command: npm run ci:test:only
- store_artifacts:
name: Storing browser build for REPL
path: /home/circleci/project/dist/rollup.browser.js
destination: rollup.browser.js
- run:
name: Post REPL comment
command: ./scripts/post-comment.js
node-v14-latest:
docker:
- image: rollupcabal/circleci-node-v14:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Running tests with coverage
command: npm run ci:coverage
windows-v10-latest:
executor:
name: win/default
shell: bash.exe
steps:
- checkout
- run:
name: Select Node 10
command: nvm use 10
- run:
name: Installing Dependencies
command: npm ci
- run:
name: Running tests
command: npm test
windows-v14-latest:
executor:
name: win/default
shell: bash.exe
steps:
- run:
name: Configure git line breaks
command: git config --global core.autocrlf false
- checkout
- run:
name: Select Node 14
command: nvm use 14
- run:
name: Installing Dependencies
command: npm ci
- run:
name: Running tests
command: npm test
workflows:
version: 2
validate-test:
jobs:
- analysis:
filters:
tags:
only: /.*/
- node-v10-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v12-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v14-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- windows-v10-latest:
filters:
tags:
only: /.*/
- windows-v14-latest:
filters:
tags:
only: /.*/