Skip to content

Commit 27b7b7d

Browse files
dominykaszackschuster
authored andcommitted
ci: use pkgjs/action
1 parent f496285 commit 27b7b7d

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
name: Test
2+
23
on:
3-
pull_request:
44
push:
55
branches:
6-
- master
6+
- main
7+
pull_request:
8+
79
jobs:
810
test:
9-
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
node-version: [12.x, 14.x, 16.x]
13-
steps:
14-
- uses: actions/checkout@v1
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: ${{ matrix.node-version }}
19-
- name: npm install and test
20-
run: npm it
11+
uses: pkgjs/action/.github/workflows/node-test.yaml@v0

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@
4545
"@types/node": "16.10.2",
4646
"mocha": "^5.1.1",
4747
"semistandard": "^16.0.1"
48+
},
49+
"engines": {
50+
"node": "^12 || ^14 || ^16"
4851
}
4952
}

0 commit comments

Comments
 (0)