diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82e1ce9..79aea31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,12 +3,35 @@ name: ci on: [push, pull_request] jobs: + legacy: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install + run: | + npm install + + - name: Run tests + run: | + npm run test:only + test: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x, 16.x, 18.x, 19.x] + node-version: [18.x, 19.x] steps: - uses: actions/checkout@v2 diff --git a/package.json b/package.json index 94aedcb..9efc7f6 100644 --- a/package.json +++ b/package.json @@ -4,19 +4,15 @@ "description": "Exit your process, gracefully (if possible)", "main": "index.js", "devDependencies": { - "husky": "^8.0.0", + "@fastify/pre-commit": "^2.0.2", "standard": "^17.0.0", "tap-dot": "^2.0.0", "tape": "^5.1.1", "tsd": "^0.28.0" }, "scripts": { - "test": "standard && tape test/*.test.js | tap-dot && tsd" - }, - "husky": { - "hooks": { - "pre-commit": "npm test" - } + "test": "standard && npm run test-only && tsd", + "test-only": "tape test/*.test.js | tap-dot" }, "repository": { "type": "git",