Skip to content

Commit 0ca0490

Browse files
authored
Create node.js.yml
1 parent 56acd12 commit 0ca0490

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: packages\nextjs-cache-handler
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22.x
23+
cache: 'npm'
24+
- run: npm ci
25+
- run: npm run build --if-present
26+
- run: npm test

0 commit comments

Comments
 (0)