devops: align Node.js versions on CI and add 16/18 bots (#13759)

This commit is contained in:
Max Schmitt 2022-04-26 16:59:47 +02:00 committed by GitHub
parent 00b4fb8bad
commit 6c922d2f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 8 deletions

View file

@ -28,7 +28,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
# Component tests require Node.js 16+ (they require ESM via TS)
node-version: 16
- run: npm i -g npm@8.3
- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps

View file

@ -72,7 +72,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
node-version: 14
- run: npm i -g npm@7
- name: Deploy Canary
run: bash utils/build/deploy-trace-viewer.sh --canary

View file

@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
node-version: 14
- run: npm i -g npm@7
- name: Deploy Stable
run: bash utils/build/deploy-trace-viewer.sh --stable

View file

@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
node-version: 14
- run: npm i -g npm@8.3
- run: npm ci
- run: npm run build

View file

@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 14
- run: npm i -g npm@8.3
- run: npm ci
env:

View file

@ -26,18 +26,26 @@ env:
jobs:
test_linux:
name: ${{ matrix.os }} (${{ matrix.browser }})
name: ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }})
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
os: [ubuntu-20.04]
node-version: [14]
include:
- os: ubuntu-20.04
node-version: 16
browser: chromium
- os: ubuntu-20.04
node-version: 18
browser: chromium
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{ matrix.node-version }}
- run: npm i -g npm@8.3
- run: npm ci
env:
@ -123,7 +131,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
# ESM tests rely on the experimental loader in Node.js 16+
node-version: 16
- run: npm i -g npm@8.3
- run: npm ci
env:
@ -139,7 +148,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
# Component tests require Node.js 16+ (they require ESM via TS)
node-version: 16
- run: npm i -g npm@8.3
- run: npm ci
env:
DEBUG: pw:install