Skip to content

Commit

Permalink
legacy CI
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Apr 7, 2023
1 parent f470ddf commit 0596cd4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 0596cd4

Please sign in to comment.