other: Added node support and testing for versions 20.x and 22.x #3434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Tests | |
on: [push, pull_request] | |
jobs: | |
# Run tests with 'pnpm install --frozen-lockfile' dependencies | |
tests-with-pck-lock-dependencies: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.x.x | |
run_install: false | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test | |
# Run tests with 'pnpm i' dependencies | |
tests-with-pck-dependencies: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.x.x | |
run_install: false | |
- run: pnpm i | |
- run: pnpm test |