From 5af1b9a196126db57a0b9c92ca33de3703b28ed9 Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Mon, 30 Dec 2024 14:41:10 +0100 Subject: [PATCH] chore: Update default node version to 22 (#6728) --- .github/actions/setup-and-test/action.yaml | 2 +- .github/actions/setup/action.yaml | 2 +- .github/workflows/coverage.yml | 2 ++ .github/workflows/integration-test.yml | 1 - .github/workflows/lint.yml | 2 +- .github/workflows/reuseable-build-dist-cache.yml | 3 +-- .../reuseable-load-integrations-repo-list.yml | 3 +-- .github/workflows/smoke-test.yml | 3 ++- .github/workflows/test-build-docs.yml | 2 +- .github/workflows/test.yml | 12 +++++++----- .../workflows/update-integration-repositories.yml | 1 - 11 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/actions/setup-and-test/action.yaml b/.github/actions/setup-and-test/action.yaml index 8b93286af14..f4d215385a6 100644 --- a/.github/actions/setup-and-test/action.yaml +++ b/.github/actions/setup-and-test/action.yaml @@ -4,7 +4,7 @@ inputs: node-version: required: false description: The version of Node to use. - default: '18.x' + default: '22.x' shell: required: false description: Shell to use, defaults to (bash || powershell) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index 981d85d8a90..fb987f2fe33 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -4,7 +4,7 @@ inputs: node-version: required: false description: The version of Node to use. - default: '18.x' + default: '22.x' runs: using: 'composite' steps: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c2e41dddfcd..d26b5d24093 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -42,6 +42,8 @@ jobs: - name: Install and Build uses: ./.github/actions/install-build + with: + node-version: 18.x # using 18 for now since there are coverage issues with newer versions - run: pnpm run coverage diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 534ca84db34..b5055a8ecbd 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -38,7 +38,6 @@ permissions: env: RUNS_ON: ubuntu-latest NODE_VERSION: '22.x' - NPM_VERSION: '9' jobs: pre-build: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 26c27307f04..ff10b36e258 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,7 +24,7 @@ jobs: - name: Setup and Build uses: ./.github/actions/install-build-cache with: - node-version: 18.x + node-version: 22.x - name: Lint run: pnpm run lint diff --git a/.github/workflows/reuseable-build-dist-cache.yml b/.github/workflows/reuseable-build-dist-cache.yml index e4e188e2cd9..36ea1bc22c5 100644 --- a/.github/workflows/reuseable-build-dist-cache.yml +++ b/.github/workflows/reuseable-build-dist-cache.yml @@ -44,8 +44,7 @@ permissions: contents: read env: - NODE_VERSION: '18.x' - NPM_VERSION: '9' + NODE_VERSION: '22.x' jobs: build: diff --git a/.github/workflows/reuseable-load-integrations-repo-list.yml b/.github/workflows/reuseable-load-integrations-repo-list.yml index 080f58dd69b..79d7312ba60 100644 --- a/.github/workflows/reuseable-load-integrations-repo-list.yml +++ b/.github/workflows/reuseable-load-integrations-repo-list.yml @@ -28,8 +28,7 @@ permissions: env: RUNS_ON: ubuntu-latest - NODE_VERSION: '18.x' - NPM_VERSION: '9' + NODE_VERSION: '22.x' jobs: load: diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 7093734a3b3..54bbb519461 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -66,6 +66,7 @@ jobs: - 18.x - 20.x - 22.x + - 23.x os: - ubuntu-latest @@ -111,7 +112,7 @@ jobs: fail-fast: false matrix: node-version: - - 18.x + - 22.x os: - windows-latest diff --git a/.github/workflows/test-build-docs.yml b/.github/workflows/test-build-docs.yml index 20160853775..5c5fb445368 100644 --- a/.github/workflows/test-build-docs.yml +++ b/.github/workflows/test-build-docs.yml @@ -16,7 +16,7 @@ jobs: matrix: node-version: # List of supported node versions (latest is tested in `test-os`) - - 18.x + - 22.x os: - ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d360edf63c..64a6db9bf7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,6 +46,7 @@ jobs: - 18.x - 20.x - 22.x + - 23.x os: - ubuntu-latest @@ -67,7 +68,7 @@ jobs: strategy: matrix: node-version: - - 18.x + - 22.x os: - windows-latest @@ -90,8 +91,7 @@ jobs: strategy: matrix: node-version: - - 18.x - # - 20.x + - 22.x os: - ubuntu-latest @@ -123,8 +123,10 @@ jobs: matrix: node-version: # List of supported node versions (latest is tested in `test-os`) + - 18.x - 20.x - 22.x + - 23.x os: - ubuntu-latest @@ -136,10 +138,10 @@ jobs: include: - os: windows-latest use_cspell_cache: '' - node-version: 18.x + node-version: 22.x # - os: macos-latest # use_cspell_cache: "" - # node-version: 18.x + # node-version: 22.x steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/update-integration-repositories.yml b/.github/workflows/update-integration-repositories.yml index 1df138505b8..1cdd5361398 100644 --- a/.github/workflows/update-integration-repositories.yml +++ b/.github/workflows/update-integration-repositories.yml @@ -17,7 +17,6 @@ env: REF_BRANCH_G: main RUNS_ON: ubuntu-latest NODE_VERSION: '18.x' - NPM_VERSION: '9' jobs: calc-ref: