ci(test): add node20 to test matrix

Add node20 to test matrix
This commit is contained in:
Conicaw 2023-09-25 16:14:27 -05:00
parent 9752867b84
commit ec0f5d159e
No known key found for this signature in database
GPG Key ID: 8DE10AC00159C418
1 changed files with 6 additions and 6 deletions

View File

@ -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