mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
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:
46
utils/chunk-tests-18.js
vendored
Normal file
46
utils/chunk-tests-18.js
vendored
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user