Skip to content

Commit

Permalink
ci: use pkgjs/action
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Jan 31, 2022
1 parent 31c43b9 commit 86ccd49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
name: Test
on: push

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 13.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: npm it
uses: pkgjs/action/.github/workflows/node-test.yaml@v0
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@
},
"bin": {
"nv": "./bin/nv"
},
"engines": {
"node": "^10 || ^12 || ^14 || ^16"
}
}

0 comments on commit 86ccd49

Please sign in to comment.