deploy on node 20 (#9799)

* deploy on node 20

* use appropriate npm versions for each node version
This commit is contained in:
chris48s
2023-12-30 19:03:34 +00:00
committed by GitHub
parent 3300e4a09d
commit 01de8910cd
22 changed files with 45 additions and 37 deletions

View File

@@ -17,7 +17,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
cypress: true
- run: .github/scripts/check-docusaurus-versions.sh

View File

@@ -19,7 +19,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: Danger
run: npm run danger ci

View File

@@ -19,7 +19,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: Build
run: npm run build-docs

View File

@@ -40,7 +40,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
cypress: false
- name: Output debug info

View File

@@ -26,7 +26,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
cypress: true
- name: Run tests

View File

@@ -1,4 +1,4 @@
name: Integration@node 20
name: Integration@node 21
on:
pull_request:
types: [opened, reopened, synchronize]
@@ -8,7 +8,7 @@ on:
- 'dependabot/**'
jobs:
test-integration-20:
test-integration-21:
runs-on: ubuntu-latest
env:
PAT_EXISTS: ${{ secrets.GH_PAT != '' }}
@@ -35,7 +35,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 20
node-version: 21
env:
NPM_CONFIG_ENGINE_STRICT: 'false'

View File

@@ -35,7 +35,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: Integration Tests (with PAT)
if: ${{ env.PAT_EXISTS == 'true' }}

View File

@@ -17,7 +17,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: ESLint
if: always()

View File

@@ -1,4 +1,4 @@
name: Main@node 20
name: Main@node 21
on:
pull_request:
types: [opened, reopened, synchronize]
@@ -8,7 +8,7 @@ on:
- 'dependabot/**'
jobs:
test-main-20:
test-main-21:
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -17,7 +17,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 20
node-version: 21
env:
NPM_CONFIG_ENGINE_STRICT: 'false'

View File

@@ -22,7 +22,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: Core tests
uses: ./.github/actions/core-tests

View File

@@ -14,11 +14,14 @@ jobs:
matrix:
include:
- node: '16'
npm: '^9'
engine-strict: 'false'
- node: '18'
engine-strict: 'true'
- node: '20'
npm: '^9'
engine-strict: 'false'
- node: '20'
npm: '^10'
engine-strict: 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -27,6 +30,7 @@ jobs:
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node }}
npm-version: ${{ matrix.npm }}
env:
NPM_CONFIG_ENGINE_STRICT: ${{ matrix.engine-strict }}

View File

@@ -1,4 +1,4 @@
name: Services@node 20
name: Services@node 21
on:
pull_request:
types: [opened, edited, reopened, synchronize]
@@ -7,7 +7,7 @@ on:
- 'gh-readonly-queue/**'
jobs:
test-services-20:
test-services-21:
runs-on: ubuntu-latest
steps:
@@ -17,7 +17,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 20
node-version: 21
env:
NPM_CONFIG_ENGINE_STRICT: 'false'

View File

@@ -17,7 +17,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: Service tests (triggered from local branch)
if: github.event.pull_request.head.repo.full_name == github.repository

View File

@@ -19,7 +19,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18
node-version: 20
- name: Check for new GitHub API version
run: node scripts/update-github-api.js