Skip to content

Commit f59be69

Browse files
committed
ci: add test-windows
1 parent 3ee7bc2 commit f59be69

File tree

5 files changed

+62
-4
lines changed

5 files changed

+62
-4
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: 20
23-
- name: Install front-end dependencies and build front-end assets
23+
- name: Install front-end dependencies
2424
run: pnpm install
25+
- name: Build front-end assets
26+
run: pnpm run build
2527
- name: Check
2628
run: pnpm run lint

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
registry-url: "https://registry.npmjs.org"
3333
- name: Install dependencies
3434
run: pnpm install
35-
- name: Run build
35+
- name: Build front-end assets
3636
run: pnpm run build
3737
- name: Run lint
3838
run: pnpm run lint

.github/workflows/test-macos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: 22
23-
- name: Install front-end dependencies and build front-end assets
23+
- name: Install front-end dependencies
2424
run: pnpm install
25+
- name: Build front-end assets
26+
run: pnpm run build
2527
- name: Test on node@22
2628
run: pnpm run test
2729
- name: Setup node@21

.github/workflows/test-windows.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test on Windows
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, edited, reopened, synchronize]
8+
branches:
9+
- "**"
10+
env:
11+
NODE_OPTIONS: --max_old_space_size=102400
12+
jobs:
13+
test:
14+
runs-on: windows-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Enable Corepack
18+
run: corepack enable
19+
- name: Setup node@22
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 22
23+
- name: Install front-end dependencies
24+
run: pnpm install
25+
- name: Build front-end assets
26+
run: pnpm run build
27+
- name: Test on node@22
28+
run: pnpm run test
29+
- name: Setup node@21
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: 21
33+
- name: Test on node@21
34+
run: pnpm run test
35+
- name: Setup node@20
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: 20
39+
- name: Test on node@20
40+
run: pnpm run test
41+
- name: Setup node@19
42+
uses: actions/setup-node@v3
43+
with:
44+
node-version: 19
45+
- name: Test on node@19
46+
run: pnpm run test
47+
- name: Setup node@18
48+
uses: actions/setup-node@v3
49+
with:
50+
node-version: 18
51+
- name: Test on node@18
52+
run: pnpm run test

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: 22
23-
- name: Install front-end dependencies and build front-end assets
23+
- name: Install front-end dependencies
2424
run: pnpm install
25+
- name: Build front-end assets
26+
run: pnpm run build
2527
- name: Test on node@22
2628
run: pnpm run test
2729
- name: Setup node@21

0 commit comments

Comments
 (0)