Skip to content

Commit 0799c83

Browse files
committed
Merge remote-tracking branch 'origin/master' into check-heartbeat
2 parents 3512f7b + f3ea96e commit 0799c83

File tree

2 files changed

+35
-41
lines changed

2 files changed

+35
-41
lines changed

Diff for: .github/workflows/ci.yml

+32-23
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,49 @@ on:
66
schedule:
77
- cron: '0 0 * * 0'
88

9-
permissions:
10-
contents: read
11-
129
jobs:
1310
test-node:
1411
runs-on: ubuntu-latest
15-
timeout-minutes: 10
1612

1713
strategy:
18-
fail-fast: false
1914
matrix:
20-
node-version:
21-
- 18
22-
- 20
15+
node-version: [12, 14, 16]
2316

2417
steps:
25-
- name: Checkout repository
26-
uses: actions/checkout@v4
27-
18+
- uses: actions/checkout@v2
2819
- name: Use Node.js ${{ matrix.node-version }}
29-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v2
3021
with:
3122
node-version: ${{ matrix.node-version }}
23+
- run: npm ci
24+
- run: npm test
25+
env:
26+
CI: true
3227

33-
- name: Install dependencies
34-
run: npm ci
35-
36-
# in order to test our compliance with TypeScript v4.2 (older versions are not tested)
37-
- name: Install TypeScript 4.2
38-
run: npm i [email protected]
39-
if: ${{ matrix.node-version == '16' }}
28+
build-examples:
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 10
4031

41-
- name: Compile each package
42-
run: npm run compile --workspaces --if-present
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
example:
36+
- custom-parsers
37+
- typescript
38+
- webpack-build
39+
- webpack-build-server
4340

44-
- name: Run tests
45-
run: npm test --workspaces
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v3
44+
45+
- name: Use Node.js 20
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: 20
49+
50+
- name: Build ${{ matrix.example }}
51+
run: |
52+
cd examples/${{ matrix.example }}
53+
npm install
54+
npm run build

Diff for: examples/cluster-nginx/docker-compose.yml

+3-18
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,41 @@ services:
33
image: nginx:alpine
44
volumes:
55
- ./nginx.conf:/etc/nginx/nginx.conf:ro
6-
links:
7-
- server-john
8-
- server-paul
9-
- server-george
10-
- server-ringo
116
ports:
12-
- "3000:80"
7+
- "3000:80"
138

149
server-john:
1510
build: ./server
16-
links:
17-
- redis
1811
expose:
19-
- "3000"
12+
- "3000"
2013
environment:
2114
- NAME=John
2215

2316
server-paul:
2417
build: ./server
25-
links:
26-
- redis
2718
expose:
2819
- "3000"
2920
environment:
3021
- NAME=Paul
3122

3223
server-george:
3324
build: ./server
34-
links:
35-
- redis
3625
expose:
3726
- "3000"
3827
environment:
3928
- NAME=George
4029

4130
server-ringo:
4231
build: ./server
43-
links:
44-
- redis
4532
expose:
4633
- "3000"
4734
environment:
4835
- NAME=Ringo
4936

5037
client:
5138
build: ./client
52-
links:
53-
- nginx
5439

5540
redis:
56-
image: redis:6
41+
image: redis:alpine
5742
expose:
5843
- "6379"

0 commit comments

Comments
 (0)