Skip to content

Commit 156dab9

Browse files
jhwgh1968dcodeIO
authored andcommitted
CI: Also run tests on Windows (#984)
1 parent d88a654 commit 156dab9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,29 @@ jobs:
5555
run: npm run build
5656
- name: Test distribution
5757
run: npm test
58+
test-windows:
59+
name: "Test compiler on Windows with node: node"
60+
runs-on: windows-latest
61+
needs: check
62+
steps:
63+
- uses: actions/checkout@v1.0.0
64+
- name: Install node via nvm-windows
65+
run: |
66+
Invoke-WebRequest -Uri https://github.com/coreybutler/nvm-windows/releases/download/1.1.7/nvm-noinstall.zip -OutFile nvm.zip
67+
Expand-Archive nvm.zip -DestinationPath nvm
68+
nvm/nvm install node
69+
nvm/nvm use node
70+
npm -g install npm@latest
71+
- name: Install dependencies
72+
run: npm ci --no-audit
73+
- name: Clean distribution files
74+
run: npm run clean
75+
- name: Test sources
76+
run: npm test
77+
- name: Build distribution files
78+
run: npm run build
79+
- name: Test distribution
80+
run: npm test
5881
test-canary:
5982
name: "Test features on node: v8-canary"
6083
runs-on: ubuntu-latest

NOTICE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ under the licensing terms detailed in LICENSE:
1818
* Emil Laine <laine.emil@gmail.com>
1919
* Stephen Paul Weber <stephen.weber@shopify.com>
2020
* Jay Phelps <hello@jayphelps.com>
21+
* jhwgh1968 <jhwgh1968@protonmail.com>
2122

2223
Portions of this software are derived from third-party works licensed under
2324
the following terms:

0 commit comments

Comments
 (0)