ci: restore package-specific tests

This commit is contained in:
Damien Arrachequesne
2024-09-17 15:07:23 +02:00
parent fd99f2e15f
commit fcbecd4f46

View File

@@ -44,13 +44,16 @@ jobs:
- name: Install dependencies
run: npm ci
# in order to test our compliance with TypeScript v4.2 (older versions are not tested)
- name: Install TypeScript 4.2
run: npm i typescript@4.2
if: ${{ matrix.node-version == '16' }}
- name: Compile each package
run: npm run compile --workspaces --if-present
- name: Run tests
run: npm test --workspaces
- name: Run tests with uws (engine.io)
run: npm run test:uws --workspace=engine.io
if: ${{ matrix.node-version == '18' }}
- name: Run tests with fetch instead of XHR (engine.io-client)
run: npm run test:node-fetch --workspace=engine.io-client
if: ${{ matrix.node-version == '18' }}