Skip to content

Commit 4f35700

Browse files
committed
add test workflow
1 parent 3fa39bf commit 4f35700

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
concurrency:
8+
group: "test"
9+
cancel-in-progress: false
10+
11+
jobs:
12+
test:
13+
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: npm install and test
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: npm it

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@
5858
"npm": "^6.10.3",
5959
"regenerator-runtime": "^0.13.3",
6060
"yargs": "^13.3.0"
61+
},
62+
"engines": {
63+
"node": ">=10"
6164
}
6265
}

0 commit comments

Comments
 (0)