-
Notifications
You must be signed in to change notification settings - Fork 10.1k
71 lines (58 loc) · 1.82 KB
/
ci-engine.io-client.yml
File metadata and controls
71 lines (58 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI (engine.io-client)
on:
push:
branches:
- '**'
paths:
- 'packages/engine.io/**'
- 'packages/engine.io-client/**'
- 'packages/engine.io-parser/**'
- 'packages/socket.io-component-emitter/**'
- '.github/workflows/ci-engine.io-client.yml'
pull_request:
paths:
- 'packages/engine.io/**'
- 'packages/engine.io-client/**'
- 'packages/engine.io-parser/**'
- 'packages/socket.io-component-emitter/**'
- '.github/workflows/ci-engine.io-client.yml'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Compile dependencies
run: |
npm run compile \
--workspace=engine.io-parser
- name: Compile package
run: npm run compile --workspace=engine.io-client
- name: Compile dev dependencies
run: |
npm run compile \
--workspace=engine.io
- name: Run tests
run: npm test --workspace=engine.io-client
- name: Run tests with fetch instead of XHR
run: npm run test:node-fetch --workspace=engine.io-client
- name: Run tests with Node.js native WebSocket
run: npm run test:node-builtin-ws --workspace=engine.io-client
# TODO: migrate tests from zuul to WebdriverIO
# - name: Run tests in browser
# if: github.event_name == 'push'
# run: npm test --workspace=engine.io-client
# env:
# BROWSERS: 1
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}