Skip to content

Commit 4477284

Browse files
committed
Add appveyor for testing on windows
1 parent 16659ec commit 4477284

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.appveyor.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
build: off
2+
3+
environment:
4+
matrix:
5+
- nodejs_version: '14'
6+
- nodejs_version: '12'
7+
- nodejs_version: '10'
8+
9+
install:
10+
- ps: Install-Product node $env:nodejs_version
11+
- npm install
12+
13+
test_script:
14+
- node test | tap-xunit | tee test-results.xml
15+
16+
after_test:
17+
- ps: |
18+
$wc = New-Object 'System.Net.WebClient'
19+
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-results.xml))
20+
Push-AppveyorArtifact (Resolve-Path '.\test-results.xml')

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"lint-staged": "^10.5.4",
4949
"prettier": "^2.2.1",
5050
"tap": "^15.0.2",
51+
"tap-xunit": "^2.4.1",
5152
"touch": "^3.1.0",
5253
"ts-node": "^9.1.1",
5354
"typescript": "^4.1.5"

0 commit comments

Comments
 (0)