diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0891eef..f5d175b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/package.json b/package.json index fd5f52b..18648ee 100644 --- a/package.json +++ b/package.json @@ -47,5 +47,8 @@ }, "bin": { "nv": "./bin/nv" + }, + "engines": { + "node": "^18 || ^20 || ^22" } }