Skip to content

Commit dd48ea4

Browse files
authored
Create test-build.yml
1 parent 5b0c9d0 commit dd48ea4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: test-build
2+
3+
on:
4+
workflow_dispatch: # allow manual runs
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 20.x, 22.x]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Test Node ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Build with Webpack
25+
run: npm run build

0 commit comments

Comments
 (0)