Skip to content

Commit b31284b

Browse files
tests: Move Windows unit tests to CircleCI (#16844)
1 parent 1430af5 commit b31284b

File tree

3 files changed

+30
-19
lines changed

3 files changed

+30
-19
lines changed

.circleci/config.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
orbs:
2+
win: circleci/[email protected]
3+
14
executors:
25
node:
36
parameters:
@@ -272,10 +275,32 @@ jobs:
272275
no_output_timeout: 2h
273276
working_directory: ~/project/www
274277

278+
windows_unit_tests:
279+
executor:
280+
name: win/vs2019
281+
shell: powershell.exe
282+
steps:
283+
- checkout
284+
- restore_cache:
285+
keys:
286+
- yarn-packages-v2-{{ checksum "yarn.lock" }}
287+
- yarn-packages-v2-
288+
- run:
289+
name: "Install dependencies"
290+
command: yarn bootstrap
291+
- save_cache:
292+
paths:
293+
- C:\Users\circleci\AppData\Local\Yarn\Cache
294+
key: yarn-packages-v2-{{ checksum "yarn.lock" }}
295+
- run:
296+
name: "Run Tests"
297+
command: yarn test
298+
275299
workflows:
276300
version: 2
277301
build-test:
278302
jobs:
303+
- windows_unit_tests
279304
- bootstrap
280305
- lint:
281306
requires:
@@ -332,7 +357,6 @@ workflows:
332357
requires:
333358
- build_www
334359
context: build_www
335-
336360
www_deploy:
337361
triggers:
338362
- schedule:

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,8 @@
107107
},
108108
"workspaces": [
109109
"packages/*"
110-
]
110+
],
111+
"resolutions": {
112+
"write-file-atomic": "2.4.1"
113+
}
111114
}

yarn.lock

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22299,7 +22299,7 @@ wrappy@1:
2229922299
version "1.0.2"
2230022300
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
2230122301

22302-
22302+
[email protected], write-file-atomic@^2.0.0, write-file-atomic@^2.3.0, write-file-atomic@^2.4.2:
2230322303
version "2.4.1"
2230422304
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.1.tgz#d0b05463c188ae804396fd5ab2a370062af87529"
2230522305
integrity sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg==
@@ -22308,22 +22308,6 @@ [email protected]:
2230822308
imurmurhash "^0.1.4"
2230922309
signal-exit "^3.0.2"
2231022310

22311-
write-file-atomic@^2.0.0, write-file-atomic@^2.3.0:
22312-
version "2.3.0"
22313-
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab"
22314-
dependencies:
22315-
graceful-fs "^4.1.11"
22316-
imurmurhash "^0.1.4"
22317-
signal-exit "^3.0.2"
22318-
22319-
write-file-atomic@^2.4.2:
22320-
version "2.4.2"
22321-
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.2.tgz#a7181706dfba17855d221140a9c06e15fcdd87b9"
22322-
dependencies:
22323-
graceful-fs "^4.1.11"
22324-
imurmurhash "^0.1.4"
22325-
signal-exit "^3.0.2"
22326-
2232722311
2232822312
version "0.0.2"
2232922313
resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1"

0 commit comments

Comments
 (0)