Skip to content

Commit 5c63915

Browse files
NickNasogabrielschulhof
authored andcommitted
build: add CI configuration for Windows
Added windows-2016 as virtual environment. PR-URL: #948 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
1 parent 8ef0725 commit 5c63915

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/ci-win.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node.js CI Windows Platform
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
timeout-minutes: 30
8+
strategy:
9+
matrix:
10+
node-version: [10.x, 12.x, 14.x, 15.x]
11+
os:
12+
- windows-latest
13+
- windows-2016
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/[email protected]
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Check Node.js installation
22+
run: |
23+
node --version
24+
npm --version
25+
- name: Install dependencies
26+
run: |
27+
npm install
28+
- name: npm test
29+
run: |
30+
npm run pretest -- --verbose
31+
node test

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: Node.js CI Unix Platform
22

33
on: [push, pull_request]
44

0 commit comments

Comments
 (0)