ci: add Node.js v18 tests (#11575)

Some tests are skipped because CI tests are running against v16.

I added a new GitHub CI job just inlcuding the tests that are skipped for now.
This commit is contained in:
Kiko Beats
2024-05-10 23:15:37 +02:00
committed by GitHub
parent 1b5ce5644f
commit bc95d764b4
4 changed files with 176 additions and 1 deletions

46
utils/chunk-tests-18.js vendored Normal file
View File

@@ -0,0 +1,46 @@
async function main() {
try {
console.log(
JSON.stringify([
{
runner: 'ubuntu-latest',
packagePath: 'packages/node',
packageName: '@vercel/node',
scriptName: 'test-unit',
testScript: 'test',
testPaths: ['test/unit/dev.test.ts'],
chunkNumber: 1,
allChunksLength: 1,
},
{
runner: 'macos-14',
packagePath: 'packages/node',
packageName: '@vercel/node',
scriptName: 'test-unit',
testScript: 'test',
testPaths: ['test/unit/dev.test.ts'],
chunkNumber: 1,
allChunksLength: 1,
},
{
runner: 'windows-latest',
packagePath: 'packages/node',
packageName: '@vercel/node',
scriptName: 'test-unit',
testScript: 'test',
testPaths: ['test/unit/dev.test.ts'],
chunkNumber: 1,
allChunksLength: 1,
},
])
);
} catch (e) {
console.error(e);
process.exitCode = 1;
}
}
// @ts-ignore
if (module === require.main || !module.parent) {
main();
}