Skip to content

Commit 56e4f28

Browse files
theturtle32Claude Codeclaude
authored
Add multi-version Node.js testing to CI (#492)
* Add multi-version Node.js testing to CI Configure GitHub Actions to test on multiple Node.js versions: - Node.js 16.x (EOL but still in use) - Node.js 18.x (LTS) - Node.js 20.x (LTS) - Node.js 22.x (Current) Additional improvements: - Add browser tests to CI pipeline - Set fail-fast: false to test all versions - Add descriptive step names 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix CI: Install Playwright browsers before running tests * Remove browser tests from multi-version CI workflow Focus on Node.js compatibility matrix testing only. Browser tests can be added to CI in a separate workflow later. * Remove Node.js 16.x from CI matrix Node.js 16.x reached EOL in September 2023 and Vitest/Vite no longer support it (crypto.getRandomValues compatibility issue). Testing on actively supported LTS versions: - Node.js 18.x (Active LTS) - Node.js 20.x (Active LTS) - Node.js 22.x (Current) --------- Co-authored-by: Claude Code <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 140d9ed commit 56e4f28

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/websocket-tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on: [pull_request]
33
jobs:
44
test:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [18.x, 20.x, 22.x]
9+
fail-fast: false
10+
name: Test on Node.js ${{ matrix.node-version }}
611
steps:
712
- uses: actions/checkout@v2
813

@@ -12,14 +17,17 @@ jobs:
1217

1318
- uses: actions/setup-node@v3
1419
with:
15-
node-version: 18.x
20+
node-version: ${{ matrix.node-version }}
1621
cache: 'pnpm'
1722

18-
- run: pnpm install
23+
- name: Install dependencies
24+
run: pnpm install
1925

20-
- run: pnpm run lint
26+
- name: Run lint
27+
run: pnpm run lint
2128

22-
- run: pnpm run test
29+
- name: Run unit tests
30+
run: pnpm run test
2331

2432
- name: Pull Autobahn Test Suite Docker image
2533
run: docker pull crossbario/autobahn-testsuite

0 commit comments

Comments
 (0)