Skip to content

Commit 9d9b321

Browse files
feat: add npm test workflow (#61)
1 parent fb90ca4 commit 9d9b321

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/npm-test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: npm test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches-ignore:
7+
- 'main'
8+
paths:
9+
- '.github/workflows/npm-test.yaml'
10+
- 'package.json'
11+
- 'package-lock.json'
12+
- 'src/**'
13+
pull_request:
14+
paths:
15+
- '.github/workflows/npm-test.yaml'
16+
- 'package.json'
17+
- 'package-lock.json'
18+
- 'src/**'
19+
20+
jobs:
21+
test:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 24
32+
cache: npm
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Run tests
38+
run: npm run test

0 commit comments

Comments
 (0)