Skip to content

Commit 4f05ef8

Browse files
Create node.js.yml
1 parent ac956fa commit 4f05ef8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/node.js.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: [ "main", "dev" ]
5+
pull_request:
6+
branches: [ "main", "dev" ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
strategy:
11+
matrix:
12+
node-version: [8.x, 12.x, 16.x, 20.x]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Run build
20+
run: npm install
21+
- name: Verify build
22+
run: echo "Build completed successfully!"

0 commit comments

Comments
 (0)