Skip to content

Commit 626dd94

Browse files
authored
Merge pull request #504 from 5saviahv/windows
Add Windows build
2 parents 08be87d + c6b2038 commit 626dd94

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: Linux build
22

33
on:
44
push:

.github/workflows/windows.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Windows build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Node ${{ matrix.node-version }}
10+
runs-on: windows-latest
11+
12+
strategy:
13+
matrix:
14+
# mocha nolonger supports node 10
15+
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 21.x]
16+
17+
steps:
18+
- name: Clone repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install
27+
run: |
28+
npm ci
29+
30+
- name: Run Tests
31+
run: |
32+
npm test

0 commit comments

Comments
 (0)