Skip to content

Commit

Permalink
updated dependencies (#7)
Browse files Browse the repository at this point in the history
* updated dependencies

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* legacy CI

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* fixup

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* fixup

Signed-off-by: Matteo Collina <hello@matteocollina.com>

---------

Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Apr 7, 2023
1 parent 8bbc8ed commit d2c32e4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 15 deletions.
41 changes: 38 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -2,19 +2,54 @@ name: ci

on: [push, pull_request]


# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
legacy:
permissions:
contents: read

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: |
npm install
- name: Run tests
run: |
npm run test-only
test:
permissions:
contents: read

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
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

Expand Down
6 changes: 3 additions & 3 deletions index.test-d.ts
@@ -1,5 +1,5 @@
import { expectType, expectAssignable, expectError } from "tsd"
import * as closeWithGrace from "."
import closeWithGrace from "."
import {
Options,
CloseWithGraceCallback,
Expand Down Expand Up @@ -64,11 +64,11 @@ expectAssignable<Signals>("SIGTERM")

expectType<Options>({ delay: 10 })

expectType<{
expectAssignable<{
close: () => void
uninstall: () => void
}>(closeWithGrace({ delay: 100 }, asyncAllCallback))
expectType<{
expectAssignable<{
close: () => void
uninstall: () => void
}>(closeWithGrace({ delay: 100 }, AllCallback))
Expand Down
14 changes: 5 additions & 9 deletions package.json
Expand Up @@ -4,19 +4,15 @@
"description": "Exit your process, gracefully (if possible)",
"main": "index.js",
"devDependencies": {
"husky": "^4.3.8",
"standard": "^16.0.3",
"@fastify/pre-commit": "^2.0.2",
"standard": "^17.0.0",
"tap-dot": "^2.0.0",
"tape": "^5.1.1",
"tsd": "^0.14.0"
"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 d2c32e4

Please sign in to comment.