diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1751d5084df..598402ebf89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - id: getMatrix run: | matrix=`node ./.github/workflows/ci/getTestJobs.mjs --ci` diff --git a/.github/workflows/ci/getTestJobs.mjs b/.github/workflows/ci/getTestJobs.mjs index b39db7c39bf..9dd07ecae91 100644 --- a/.github/workflows/ci/getTestJobs.mjs +++ b/.github/workflows/ci/getTestJobs.mjs @@ -38,13 +38,13 @@ async function getTestJobs() { jobName: 'Unit Tests', jobCmd: 'pnpm run test:units', jobTestFiles: specFiles, - jobSetups: [{ os: 'ubuntu-latest', node_version: '18' }] + jobSetups: [{ os: 'ubuntu-latest', node_version: '20' }] }, // Typecheck `.ts` files { jobName: 'TypeScript', jobCmd: 'pnpm run test:types', - jobSetups: [{ os: 'ubuntu-latest', node_version: '18' }] + jobSetups: [{ os: 'ubuntu-latest', node_version: '20' }] }, // E2e tests ...(await crawlE2eJobs(testFiles)) @@ -146,7 +146,7 @@ async function crawlE2eJobs(testFiles) { jobName: 'E2E Tests', jobCmd: 'pnpm run test:e2e', jobTestFiles: [], - jobSetups: [{ os: 'ubuntu-latest', node_version: '18' }] + jobSetups: [{ os: 'ubuntu-latest', node_version: '20' }] } jobs.push(job) } diff --git a/test-e2e.config.mjs b/test-e2e.config.mjs index 3eee4eead89..1ba017d7d9e 100644 --- a/test-e2e.config.mjs +++ b/test-e2e.config.mjs @@ -18,6 +18,10 @@ function getCiJobs() { os: 'ubuntu-latest', node_version: '18' } + const ubuntu20 = { + os: 'ubuntu-latest', + node_version: '20' + } const win14 = { os: 'windows-latest', node_version: '14' @@ -31,12 +35,12 @@ function getCiJobs() { node_version: '17' } - const setupsExamples = [ubuntu16, win14] + const setupsExamples = [ubuntu18, ubuntu16, win14] return [ { name: 'Boilerplates', - setups: [ubuntu18] + setups: [ubuntu20] }, { name: 'Examples React',