Skip to content

Commit c5bda60

Browse files
ci: use one workflow per package
1 parent 1e2ae34 commit c5bda60

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/ci-engine.io.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI (engine.io)
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
paths:
8+
- 'packages/engine.io/**'
9+
- 'packages/engine.io-client/**'
10+
- 'packages/engine.io-parser/**'
11+
- 'packages/socket.io-component-emitter/**'
12+
- '.github/workflows/ci-engine.io.yml'
13+
pull_request:
14+
paths:
15+
- 'packages/engine.io/**'
16+
- 'packages/engine.io-client/**'
17+
- 'packages/engine.io-parser/**'
18+
- 'packages/socket.io-component-emitter/**'
19+
- '.github/workflows/ci-engine.io.yml'
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
test:
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 10
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v6
32+
33+
- name: Use Node.js 24
34+
uses: actions/setup-node@v6
35+
with:
36+
node-version: 24
37+
cache: npm
38+
39+
- name: Install dependencies
40+
run: npm ci
41+
42+
- name: Compile dependencies
43+
run: |
44+
npm run compile \
45+
--workspace=engine.io-parser
46+
47+
- name: Compile package
48+
run: |
49+
npm run compile --workspace=engine.io
50+
51+
- name: Compile dev dependencies
52+
run: |
53+
npm run compile \
54+
--workspace=engine.io-client
55+
56+
- name: Run tests
57+
run: npm test --workspace=engine.io
58+
59+
- name: Run tests with uws
60+
run: npm run test:uws --workspace=engine.io

0 commit comments

Comments
 (0)