ci(test): add node20 to test matrix
Add node20 to test matrix
This commit is contained in:
parent
9752867b84
commit
ec0f5d159e
|
@ -14,17 +14,17 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12, 14, 16]
|
node-version: [12, 14, 16, 20]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
# Temporarily skip older node-version checks until they are removed from required checks
|
# Temporarily skip older node-version checks until they are removed from required checks
|
||||||
if: ${{ matrix.node-version == 16 }}
|
if: ${{ matrix.node-version >= 16 }}
|
||||||
uses: actions/checkout@v4.1.0
|
uses: actions/checkout@v4.1.0
|
||||||
|
|
||||||
- name: Setup Node.js ${{ matrix.node-version }}
|
- name: Setup Node.js ${{ matrix.node-version }}
|
||||||
# Temporarily skip older node-version checks until they are removed from required checks
|
# Temporarily skip older node-version checks until they are removed from required checks
|
||||||
if: ${{ matrix.node-version == 16 }}
|
if: ${{ matrix.node-version >= 16 }}
|
||||||
uses: actions/setup-node@v3.8.1
|
uses: actions/setup-node@v3.8.1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
@ -32,17 +32,17 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Temporarily skip older node-version checks until they are removed from required checks
|
# Temporarily skip older node-version checks until they are removed from required checks
|
||||||
if: ${{ matrix.node-version == 16 }}
|
if: ${{ matrix.node-version >= 16 }}
|
||||||
run: npm ci
|
run: npm ci
|
||||||
env:
|
env:
|
||||||
SKIP_BUILD: true
|
SKIP_BUILD: true
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
# Temporarily skip older node-version checks until they are removed from required checks
|
# Temporarily skip older node-version checks until they are removed from required checks
|
||||||
if: ${{ matrix.node-version == 16 }}
|
if: ${{ matrix.node-version >= 16 }}
|
||||||
run: npm run lint -- --no-fix
|
run: npm run lint -- --no-fix
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
# Temporarily skip older node-version checks until they are removed from required checks
|
# Temporarily skip older node-version checks until they are removed from required checks
|
||||||
if: ${{ matrix.node-version == 16 }}
|
if: ${{ matrix.node-version >= 16 }}
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
Loading…
Reference in New Issue