34 lines (32 loc) · 1.01 KB
/
ci-win.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
name: Node.js CI Windows Platform
on: [push, pull_request]
jobs:
test:
timeout-minutes: 30
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
os:
- {toolchain: Visual Studio 16 2019, arch: Win32, server: 2019}
- {toolchain: Visual Studio 16 2019, arch: x64, server: 2019}
- {toolchain: Visual Studio 17 2022, arch: Win32, server: 2022}
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022}
runs-on: windows-${{ matrix.os.server }}
name: build-${{ matrix.os.toolchain}}-${{ matrix.os.arch}}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- name: Check Node.js installation
run: |
node --version
npm --version
- name: Install dependencies
run: |
npm install
- name: npm test
run: |
npm run pretest -- --verbose
node test