chore: CI upgrade to Node 22 + TS 5.5 (#10119)

This commit is contained in:
Sébastien Lorber 2024-06-21 14:02:27 +02:00 committed by GitHub
parent 91cef6226a
commit 4ad425a88f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 32 additions and 33 deletions

View file

@ -32,7 +32,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: 18 node-version: 20
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile

View file

@ -26,7 +26,7 @@ jobs:
- name: Set up Node - name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: 20
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn

View file

@ -40,7 +40,7 @@ jobs:
- name: Set up Node - name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: 20
cache: yarn cache: yarn
- name: Track build size changes - name: Track build size changes
uses: preactjs/compressed-size-action@f780fd104362cfce9e118f9198df2ee37d12946c # v2 uses: preactjs/compressed-size-action@f780fd104362cfce9e118f9198df2ee37d12946c # v2

View file

@ -23,7 +23,7 @@ jobs:
- name: Set up Node - name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: 20
cache: yarn cache: yarn
- name: Prepare git - name: Prepare git
run: | run: |

View file

@ -26,7 +26,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: 18 node-version: 20
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile

View file

@ -24,7 +24,7 @@ jobs:
- name: Set up Node - name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: 20
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn

View file

@ -26,7 +26,7 @@ jobs:
- name: Set up Node - name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '20' node-version: 20
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn

View file

@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node: ['18.0', '18', '20'] node: ['18.0', '20', '22']
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@ -76,10 +76,10 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 18 - name: Use Node.js LTS
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: lts/*
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn
@ -146,10 +146,10 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 18 - name: Use Node.js LTS
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: lts/*
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn
@ -176,10 +176,10 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 18 - name: Use Node.js LTS
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: lts/*
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn

View file

@ -27,10 +27,10 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node - name: Set up Node LTS
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: with:
node-version: '18' node-version: lts/*
cache: yarn cache: yarn
- name: Installation - name: Installation
run: yarn run: yarn

View file

@ -11,6 +11,7 @@ on:
- jest.config.mjs - jest.config.mjs
- packages/** - packages/**
- tsconfig.*.json - tsconfig.*.json
- .github/workflows/tests-windows.yml
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@ -26,7 +27,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
matrix: matrix:
node: ['18.0', '18', '20'] node: ['18.0', '20', '22']
steps: steps:
- name: Support longpaths - name: Support longpaths
run: git config --system core.longpaths true run: git config --system core.longpaths true
@ -57,9 +58,9 @@ jobs:
run: yarn workspace website typecheck run: yarn workspace website typecheck
- name: TypeCheck website - min version - v5.1 - name: TypeCheck website - min version - v5.1
run: | run: |
yarn workspace website add typescript@5.1.6 --exact yarn add typescript@5.1.6 --exact -D -W
yarn workspace website typecheck yarn workspace website typecheck
- name: TypeCheck website - max version - Latest - name: TypeCheck website - max version - Latest
run: | run: |
yarn workspace website add typescript@latest --exact yarn add typescript@latest --exact -D -W
yarn workspace website typecheck yarn workspace website typecheck

View file

@ -11,6 +11,7 @@ on:
- jest.config.mjs - jest.config.mjs
- packages/** - packages/**
- tsconfig.*.json - tsconfig.*.json
- .github/workflows/tests.yml
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@ -26,7 +27,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node: ['18.0', '18', '20'] node: ['18.0', '20', '22']
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@ -48,9 +49,9 @@ jobs:
run: yarn workspace website typecheck run: yarn workspace website typecheck
- name: TypeCheck website - min version - v5.1 - name: TypeCheck website - min version - v5.1
run: | run: |
yarn workspace website add typescript@5.1.6 --exact yarn add typescript@5.1.6 --exact -D -W
yarn workspace website typecheck yarn workspace website typecheck
- name: TypeCheck website - max version - Latest - name: TypeCheck website - max version - Latest
run: | run: |
yarn workspace website add typescript@latest --exact yarn add typescript@latest --exact -D -W
yarn workspace website typecheck yarn workspace website typecheck

View file

@ -115,6 +115,6 @@
"stylelint": "^14.16.1", "stylelint": "^14.16.1",
"stylelint-config-prettier": "^9.0.5", "stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^29.0.0", "stylelint-config-standard": "^29.0.0",
"typescript": "~5.4.5" "typescript": "~5.5.2"
} }
} }

View file

@ -27,7 +27,7 @@
"@docusaurus/module-type-aliases": "3.4.0", "@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/tsconfig": "3.4.0", "@docusaurus/tsconfig": "3.4.0",
"@docusaurus/types": "3.4.0", "@docusaurus/types": "3.4.0",
"typescript": "~5.2.2" "typescript": "~5.5.2"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

View file

@ -221,6 +221,8 @@ function SearchPageContent(): JSX.Element {
const algoliaClient = algoliaSearch(appId, apiKey); const algoliaClient = algoliaSearch(appId, apiKey);
const algoliaHelper = algoliaSearchHelper(algoliaClient, indexName, { const algoliaHelper = algoliaSearchHelper(algoliaClient, indexName, {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: why errors happens after upgrading to TS 5.5 ?
hitsPerPage: 15, hitsPerPage: 15,
advancedSyntax: true, advancedSyntax: true,
disjunctiveFacets, disjunctiveFacets,

View file

@ -16080,15 +16080,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
typescript@~5.2.2: typescript@~5.5.2:
version "5.2.2" version "5.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
typescript@~5.4.5:
version "5.4.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
uglify-js@^3.1.4: uglify-js@^3.1.4:
version "3.17.4" version "3.17.4"