File tree 2 files changed +35
-41
lines changed
2 files changed +35
-41
lines changed Original file line number Diff line number Diff line change 6
6
schedule :
7
7
- cron : ' 0 0 * * 0'
8
8
9
- permissions :
10
- contents : read
11
-
12
9
jobs :
13
10
test-node :
14
11
runs-on : ubuntu-latest
15
- timeout-minutes : 10
16
12
17
13
strategy :
18
- fail-fast : false
19
14
matrix :
20
- node-version :
21
- - 18
22
- - 20
15
+ node-version : [12, 14, 16]
23
16
24
17
steps :
25
- - name : Checkout repository
26
- uses : actions/checkout@v4
27
-
18
+ - uses : actions/checkout@v2
28
19
- name : Use Node.js ${{ matrix.node-version }}
29
- uses : actions/setup-node@v4
20
+ uses : actions/setup-node@v2
30
21
with :
31
22
node-version : ${{ matrix.node-version }}
23
+ - run : npm ci
24
+ - run : npm test
25
+ env :
26
+ CI : true
32
27
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' }}
28
+ build-examples :
29
+ runs-on : ubuntu-latest
30
+ timeout-minutes : 10
40
31
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
43
40
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
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