/
config.yml
151 lines (119 loc) · 2.84 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
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
executors:
node:
docker:
- image: cimg/node:18.18.1-browsers
resource_class: small
working_directory: ~/repo
environment:
GIT_AUTHOR_EMAIL: visjsbot@gmail.com
GIT_AUTHOR_NAME: vis-bot
GIT_COMMITTER_EMAIL: visjsbot@gmail.com
GIT_COMMITTER_NAME: vis-bot
node-interop:
docker:
- image: cimg/node:18.18.1-browsers
resource_class: "medium+"
working_directory: ~/repo
environment:
GIT_AUTHOR_EMAIL: visjsbot@gmail.com
GIT_AUTHOR_NAME: vis-bot
GIT_COMMITTER_EMAIL: visjsbot@gmail.com
GIT_COMMITTER_NAME: vis-bot
jobs:
prepare:
executor: node
steps:
- checkout
- run: npm ci
- persist_to_workspace:
root: .
paths:
- "*"
build:
executor: node
steps:
- attach_workspace:
at: .
- run: npm run build
- persist_to_workspace:
root: .
paths:
- "babel-preset"
- "babel-register"
- "bin"
- "declarations"
- "dist"
- "lib"
lint:
executor: node
steps:
- attach_workspace:
at: .
- run: npm run style
- run: npm run lint
test_unit:
executor: node
steps:
- attach_workspace:
at: .
- run: npm run test:unit
test_interop:
executor: node-interop
steps:
- attach_workspace:
at: .
- run: npm pack
- run:
command: npm run test:interop -- --tmp-dir ../interop
# This runs multiple things in parallel and only reports start and end
# of individual commands, the full logs are printed at the end. Due to
# this it's quite likely to go a long time without any output and
# still finish successfully.
no_output_timeout: 60m
- store_artifacts:
path: ../interop/repos/logs
destination: interop-logs
release:
executor: node
steps:
- attach_workspace:
at: .
- run:
name: Prepare NPM
command: |
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- run:
name: Release
command: |
npx semantic-release
workflows:
version: 2
build:
jobs:
- prepare
- build:
requires:
- prepare
- lint:
requires:
- prepare
- test_unit:
requires:
- build
- test_interop:
requires:
- build
- release:
requires:
- lint
- test_unit
- test_interop
filters:
branches:
only:
- master