From 411655b75c49b86d1083d5ec10b905370463dff8 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Fri, 18 Oct 2024 09:26:52 +0300 Subject: [PATCH 1/2] ci: add nodejs v23 and deno v2 to test matrix (#919) --- .github/workflows/test.yml | 10 +++++++--- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e607d13a3..99ee621e02 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -133,12 +133,16 @@ jobs: smoke-deno: runs-on: ubuntu-latest needs: build + strategy: + matrix: + deno-version: [v1.x, v2.x] steps: - uses: actions/checkout@v4 - name: Setup Deno - uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@v2 with: - deno-version: v1.x + deno-version: ${{ matrix.deno-version }} + - run: deno install npm:types/node npm:types/fs-extra - uses: actions/download-artifact@v4 with: name: build @@ -152,7 +156,7 @@ jobs: needs: build strategy: matrix: - node-version: [12, 14, 16, 18, 20, 22, 22-nightly] + node-version: [12, 14, 16, 18, 20, 22, 22-nightly, 23] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} diff --git a/package-lock.json b/package-lock.json index 3cf93c60fa..7b4c1687e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@types/node": ">=20.11.30", "@types/which": "^3.0.4", "@webpod/ingrid": "^0.0.0-beta.3", - "@webpod/ps": "^0.0.0-beta.8", + "@webpod/ps": "^0.0.0-beta.10", "c8": "^10.1.2", "chalk": "^5.3.0", "create-require": "^1.1.1", @@ -46,7 +46,7 @@ "typescript": "^5.6.2", "which": "^4.0.0", "yaml": "^2.5.1", - "zurk": "^0.4.4" + "zurk": "^0.6.0" }, "engines": { "node": ">= 12.17.0" @@ -1265,14 +1265,14 @@ "license": "MIT" }, "node_modules/@webpod/ps": { - "version": "0.0.0-beta.8", - "resolved": "https://registry.npmjs.org/@webpod/ps/-/ps-0.0.0-beta.8.tgz", - "integrity": "sha512-IKjOLcp9rCTOjEfafw2dEFwgAQzHRYOKRBHz51DiHM0HFWSOqHURqTJ51iW5c64KWfTXn92pHjXMpj24ASWy3A==", + "version": "0.0.0-beta.10", + "resolved": "https://registry.npmjs.org/@webpod/ps/-/ps-0.0.0-beta.10.tgz", + "integrity": "sha512-Y+lfZ+xxj08NaVajl5fLIVIB6ddMn0ldpzhhlgpGpOUM1YEtSshtsqwxqGW2jIbGcH+IrbVJFUzS73oQleRttw==", "dev": true, "license": "MIT", "dependencies": { "@webpod/ingrid": "^0.0.0-beta.3", - "zurk": "^0.4.2" + "zurk": "^0.6.0" } }, "node_modules/acorn": { @@ -5551,9 +5551,9 @@ } }, "node_modules/zurk": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/zurk/-/zurk-0.4.4.tgz", - "integrity": "sha512-sAFRPQQ8AJn1a856adN56iq9zY3hf1F4eevehFNq8sMubzGnGNSGYa1EHE2TSwFheMdWGIHuTjT0tRMr1WqMEg==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/zurk/-/zurk-0.6.0.tgz", + "integrity": "sha512-7ecsvna80gz1Mnrx5xqf5ay1a6T9h0VwZg5rzPnhX4YTBM4ZiofMlftAFYJ9vcVaIYl2CPBjEvNGTtG6d/ivGQ==", "dev": true, "license": "MIT" } diff --git a/package.json b/package.json index 2602ecf2ba..9a642c9b71 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@types/node": ">=20.11.30", "@types/which": "^3.0.4", "@webpod/ingrid": "^0.0.0-beta.3", - "@webpod/ps": "^0.0.0-beta.8", + "@webpod/ps": "^0.0.0-beta.10", "c8": "^10.1.2", "chalk": "^5.3.0", "create-require": "^1.1.1", @@ -125,7 +125,7 @@ "typescript": "^5.6.2", "which": "^4.0.0", "yaml": "^2.5.1", - "zurk": "^0.4.4" + "zurk": "^0.6.0" }, "publishConfig": { "registry": "https://wombat-dressing-room.appspot.com" From b9f78c3cd9eceeabb8be96e702c3d8aa99572f5b Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Tue, 29 Oct 2024 17:44:20 +0300 Subject: [PATCH 2/2] ci: add node `--strip-types` smoke test (#920) --- .github/workflows/test.yml | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 99ee621e02..b17d43453d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -170,6 +170,9 @@ jobs: run: npm run test:smoke:cjs - name: mjs smoke test run: npm run test:smoke:mjs + - name: strip-types + if: matrix.node-version >= 22 + run: npm run test:smoke:strip-types smoke-ts: runs-on: ubuntu-latest diff --git a/package.json b/package.json index 9a642c9b71..94c4d03c13 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "test:license": "node ./test/extra.test.js", "test:audit": "npm audit fix", "test:size": "size-limit", + "test:smoke:strip-types": "node --experimental-strip-types test/smoke/ts.test.ts", "test:smoke:tsx": "tsx test/smoke/ts.test.ts", "test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js", "test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts",