Skip to content

Commit 5ed76ea

Browse files
authored
Create main.yml
1 parent d7f9c79 commit 5ed76ea

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node.js CI/CD
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
build:
9+
runs-on: self-hosted
10+
strategy:
11+
matrix:
12+
node-version: [22.x]
13+
steps:
14+
- uses: actions/[email protected]
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/[email protected]
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: 'npm'
20+
- run: npm ci
21+
- run: npm test

0 commit comments

Comments
 (0)