Skip to content

Commit 8130c97

Browse files
Paul Mulliganclaude
andcommitted
feat: add CI matrix testing for Node.js 20 and 22
Adds a node-compat job to the CI workflow that tests pnpm install against both Node.js 20 (LTS) and 22 (current LTS) using corepack. Both matrix entries must pass for CI to be green. Closes #16 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent efe2800 commit 8130c97

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,29 @@ jobs:
178178
echo "$errors template validation failures"
179179
exit $errors
180180
181+
node-compat:
182+
name: Node.js ${{ matrix.node-version }} Compatibility
183+
runs-on: ubuntu-latest
184+
timeout-minutes: 5
185+
strategy:
186+
matrix:
187+
node-version: [20, 22]
188+
steps:
189+
- uses: actions/checkout@v4
190+
191+
- uses: actions/setup-node@v4
192+
with:
193+
node-version: ${{ matrix.node-version }}
194+
195+
- run: corepack enable
196+
- run: pnpm install
197+
198+
- name: Verify installation
199+
run: |
200+
echo "Node.js version: $(node --version)"
201+
echo "pnpm version: $(pnpm --version)"
202+
pnpm ls --depth 0
203+
181204
check-links:
182205
name: Check Markdown Links
183206
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)