Skip to content

Commit 46c8af2

Browse files
committed
Added Github Actions workflow to run npm test script on push to git
1 parent 655cc26 commit 46c8af2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/lint-and-test.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint and Test
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: ['22.x', '23.x']
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
cache: 'npm'
16+
- name: Install dependencies
17+
run: npm install
18+
- run: npm test

0 commit comments

Comments
 (0)