File tree 2 files changed +32
-29
lines changed
2 files changed +32
-29
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,35 @@ jobs:
29
29
uses : actions/setup-node@v4
30
30
with :
31
31
node-version : ${{ matrix.node-version }}
32
+ - run : npm ci
33
+ - run : npm test
34
+ env :
35
+ CI : true
32
36
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
-
39
- if : ${{ matrix.node-version == '16' }}
37
+ build-examples :
38
+ runs-on : ubuntu-latest
39
+ timeout-minutes : 10
40
40
41
- - name : Compile each package
42
- run : npm run compile --workspaces --if-present
41
+ strategy :
42
+ fail-fast : false
43
+ matrix :
44
+ example :
45
+ - custom-parsers
46
+ - typescript
47
+ - webpack-build
48
+ - webpack-build-server
43
49
44
- - name : Run tests
45
- run : npm test --workspaces
50
+ steps :
51
+ - name : Checkout repository
52
+ uses : actions/checkout@v3
53
+
54
+ - name : Use Node.js 20
55
+ uses : actions/setup-node@v3
56
+ with :
57
+ node-version : 20
58
+
59
+ - name : Build ${{ matrix.example }}
60
+ run : |
61
+ cd examples/${{ matrix.example }}
62
+ npm install
63
+ npm run build
Original file line number Diff line number Diff line change @@ -3,56 +3,41 @@ services:
3
3
image : nginx:alpine
4
4
volumes :
5
5
- ./nginx.conf:/etc/nginx/nginx.conf:ro
6
- links :
7
- - server-john
8
- - server-paul
9
- - server-george
10
- - server-ringo
11
6
ports :
12
- - " 3000:80"
7
+ - " 3000:80"
13
8
14
9
server-john :
15
10
build : ./server
16
- links :
17
- - redis
18
11
expose :
19
- - " 3000"
12
+ - " 3000"
20
13
environment :
21
14
- NAME=John
22
15
23
16
server-paul :
24
17
build : ./server
25
- links :
26
- - redis
27
18
expose :
28
19
- " 3000"
29
20
environment :
30
21
- NAME=Paul
31
22
32
23
server-george :
33
24
build : ./server
34
- links :
35
- - redis
36
25
expose :
37
26
- " 3000"
38
27
environment :
39
28
- NAME=George
40
29
41
30
server-ringo :
42
31
build : ./server
43
- links :
44
- - redis
45
32
expose :
46
33
- " 3000"
47
34
environment :
48
35
- NAME=Ringo
49
36
50
37
client :
51
38
build : ./client
52
- links :
53
- - nginx
54
39
55
40
redis :
56
- image : redis:6
41
+ image : redis:alpine
57
42
expose :
58
43
- " 6379"
You can’t perform that action at this time.
0 commit comments