Enhance CI workflow by adding a matrix for multiple Node.js versions and updating pnpm to the latest version for improved compatibility.

This commit is contained in:
Luke Hagar
2025-08-13 13:52:50 -05:00
parent 293b24019b
commit 1416da094b

View File

@@ -10,19 +10,22 @@ jobs:
lint-and-format: lint-and-format:
name: Lint and Format Check name: Lint and Format Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x, 22.x, 23.x, 24.x]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'pnpm'
- name: Setup pnpm - name: Setup pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4
with: with:
version: 9 version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile