ci: upgrade to nodejs 22
This commit is contained in:
parent
ffc417f86f
commit
6dbfbe9d03
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
language: [javascript]
|
language: [javascript-typescript]
|
||||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||||
# Learn more:
|
# Learn more:
|
||||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ jobs:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
|
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ jobs:
|
||||||
version: 9
|
version: 9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
@ -46,30 +46,15 @@ jobs:
|
||||||
version: 9
|
version: 9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --no-frozen-lockfile
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
- name: Get cypress version
|
|
||||||
id: cypress-version
|
|
||||||
run: echo "version=$(pnpm info cypress version)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Cache cypress binary
|
|
||||||
id: cache-cypress-binary
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.cache/Cypress
|
|
||||||
key: cypress-binary-${{ runner.os }}-${{ steps.cypress-version.outputs.version }}
|
|
||||||
|
|
||||||
- name: Install cypress binary
|
|
||||||
if: steps.cache-cypress-binary.outputs.cache-hit != 'true'
|
|
||||||
run: pnpm cypress install
|
|
||||||
|
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
run: pnpm test:unit
|
run: pnpm test:unit
|
||||||
|
|
||||||
|
|
@ -89,10 +74,10 @@ jobs:
|
||||||
version: 9
|
version: 9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ jobs:
|
||||||
version: 9
|
version: 9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
@ -46,30 +46,15 @@ jobs:
|
||||||
version: 9
|
version: 9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Get cypress version
|
|
||||||
id: cypress-version
|
|
||||||
run: echo "version=$(pnpm info cypress version)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Cache cypress binary
|
|
||||||
id: cache-cypress-binary
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.cache/Cypress
|
|
||||||
key: cypress-binary-${{ runner.os }}-${{ steps.cypress-version.outputs.version }}
|
|
||||||
|
|
||||||
- name: Install cypress binary
|
|
||||||
if: steps.cache-cypress-binary.outputs.cache-hit != 'true'
|
|
||||||
run: pnpm cypress install
|
|
||||||
|
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
run: pnpm test:unit
|
run: pnpm test:unit
|
||||||
|
|
||||||
|
|
@ -89,10 +74,10 @@ jobs:
|
||||||
version: 9
|
version: 9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 22.x
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue