Skip to content

Commit 8f15276

Browse files
committed
Add Github Action for windows build
In this commit I have added build workflow for windows in github action.
1 parent b9baf14 commit 8f15276

File tree

1 file changed

+50
-4
lines changed

1 file changed

+50
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,55 @@ on:
77
branches: [main]
88

99
jobs:
10-
build:
10+
build-ubuntu:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- run: npm ci
15-
- run: npm test
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Install dependencies
16+
run: npm ci
17+
- name: Run tests
18+
run: npm test
19+
20+
build-windows:
21+
runs-on: windows-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
- name: Set up Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: "17"
29+
- name: Display Node.js version
30+
run: node --version
31+
- name: Display npm version
32+
run: npm --version
33+
- name: Display Python version
34+
run: python --version
35+
- name: Install dependencies
36+
run: npm ci
37+
- name: Run tests
38+
run: npm test8
39+
# version: build{build}
40+
41+
# platform:
42+
# - x64
43+
44+
# os: Visual Studio 2015
45+
46+
# cache:
47+
# - node_modules -> appveyor.yml
48+
49+
# install:
50+
# - ps: Install-Product node LTS $env:platform
51+
# - node --version
52+
# - npm --version
53+
# - python --version
54+
# - npm ci
55+
56+
# build: off
57+
58+
# test_script:
59+
# - npm run test8
60+
# - npm run test-e2e
61+

0 commit comments

Comments
 (0)