diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9c511c..0b420d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,15 @@ jobs: - name: Restore cached dependencies uses: actions/cache@v2 with: - path: node_modules + path: ~/.pnpm-store key: node-modules-${{ hashFiles('package.json') }} - name: Install dependencies - run: npm install + uses: pnpm/action-setup@v2 + with: + version: latest + run_install: true - name: Run Tests - run: npm run ci + run: pnpm run ci - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/package.json b/package.json index b5477f8..d2bd86b 100644 --- a/package.json +++ b/package.json @@ -39,12 +39,12 @@ "postpublish": "git push origin && git push origin -f --tags" }, "dependencies": { - "acquerello": "^1.0.6", + "acquerello": "^1.0.7", "hdr-histogram-js": "^3.0.0", "table": "^6.8.0" }, "devDependencies": { - "@cowtech/eslint-config": "^8.4.0", + "@cowtech/eslint-config": "^8.6.1", "@swc/cli": "^0.1.55", "@swc/core": "^1.2.150", "@types/node": "^17.0.21", @@ -54,8 +54,8 @@ "chokidar": "^3.5.3", "prettier": "^2.5.1", "proxyquire": "^2.1.3", - "sinon": "^12.0.1", - "tap": "^15.2.3", + "sinon": "^13.0.1", + "tap": "^16.0.0", "ts-node": "^10.7.0", "typescript": "^4.6.2" }, diff --git a/test/asyncImport.test.ts b/test/asyncImport.test.ts index 9787f01..af75e46 100644 --- a/test/asyncImport.test.ts +++ b/test/asyncImport.test.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ -import t from 'tap' import { isMainThread } from 'node:worker_threads' +import t from 'tap' import { cronometro, percentiles } from '../src/index.js' async function main(): Promise { diff --git a/test/config/c8-ci.json b/test/config/c8-ci.json index 82f784b..a8081eb 100644 --- a/test/config/c8-ci.json +++ b/test/config/c8-ci.json @@ -5,4 +5,4 @@ "functions": 90, "lines": 90, "statements": 90 -} \ No newline at end of file +} diff --git a/test/config/c8-local.json b/test/config/c8-local.json index fe05f31..916baeb 100644 --- a/test/config/c8-local.json +++ b/test/config/c8-local.json @@ -1,3 +1,3 @@ { "reporter": ["text", "html"] -} \ No newline at end of file +} diff --git a/test/genericErrorHandling.test.ts b/test/genericErrorHandling.test.ts index 66b5eb1..1b80f78 100644 --- a/test/genericErrorHandling.test.ts +++ b/test/genericErrorHandling.test.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ -import t from 'tap' import { isMainThread } from 'node:worker_threads' +import t from 'tap' import { cronometro } from '../src/index.js' if (!isMainThread) { diff --git a/test/print.test.ts b/test/print.test.ts index 228f2db..1d85e97 100644 --- a/test/print.test.ts +++ b/test/print.test.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ +import { isMainThread } from 'node:worker_threads' import sinon from 'sinon' import t from 'tap' -import { isMainThread } from 'node:worker_threads' import { cronometro, defaultOptions, percentiles } from '../src/index.js' import { setLogger } from '../src/print.js' diff --git a/test/success.test.ts b/test/success.test.ts index 78cef3a..5095857 100644 --- a/test/success.test.ts +++ b/test/success.test.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ -import t from 'tap' import { isMainThread } from 'node:worker_threads' +import t from 'tap' import { cronometro, percentiles } from '../src/index.js' if (!isMainThread) { diff --git a/test/unhandledErrorHandling.test.ts b/test/unhandledErrorHandling.test.ts index e972c60..f94783f 100644 --- a/test/unhandledErrorHandling.test.ts +++ b/test/unhandledErrorHandling.test.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ -import t from 'tap' import { isMainThread } from 'node:worker_threads' +import t from 'tap' import { Callback, cronometro, percentiles } from '../src/index.js' if (!isMainThread) {