12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v2
15
+ - uses : actions/setup-node@v2
16
+ with :
17
+ node-version : 16
15
18
- run : npm install
16
19
- run : npx aegir lint
17
20
- run : npx aegir ts -p check
@@ -21,82 +24,118 @@ jobs:
21
24
runs-on : ubuntu-latest
22
25
steps :
23
26
- uses : actions/checkout@v2
27
+ - uses : actions/setup-node@v2
28
+ with :
29
+ node-version : 16
24
30
- run : npm install
25
- - run : cd examples && yarn && npm run test -- auto-relay
31
+ - run : cd examples && npm i && npm run test -- auto-relay
26
32
test-chat-example :
27
33
needs : check
28
34
runs-on : ubuntu-latest
29
35
steps :
30
36
- uses : actions/checkout@v2
37
+ - uses : actions/setup-node@v2
38
+ with :
39
+ node-version : 16
31
40
- run : npm install
32
- - run : cd examples && yarn && npm run test -- chat
41
+ - run : cd examples && npm i && npm run test -- chat
33
42
test-connection-encryption-example :
34
43
needs : check
35
44
runs-on : ubuntu-latest
36
45
steps :
37
46
- uses : actions/checkout@v2
47
+ - uses : actions/setup-node@v2
48
+ with :
49
+ node-version : 16
38
50
- run : npm install
39
- - run : cd examples && yarn && npm run test -- connection-encryption
51
+ - run : cd examples && npm i && npm run test -- connection-encryption
40
52
test-discovery-mechanisms-example :
41
53
needs : check
42
54
runs-on : macos-latest
43
55
steps :
44
56
- uses : actions/checkout@v2
57
+ - uses : actions/setup-node@v2
58
+ with :
59
+ node-version : 16
45
60
- run : npm install
46
- - run : cd examples && yarn && npm run test -- discovery-mechanisms
61
+ - run : cd examples && npm i && npm run test -- discovery-mechanisms
47
62
test-echo-example :
48
63
needs : check
49
64
runs-on : ubuntu-latest
50
65
steps :
51
66
- uses : actions/checkout@v2
67
+ - uses : actions/setup-node@v2
68
+ with :
69
+ node-version : 16
52
70
- run : npm install
53
- - run : cd examples && yarn && npm run test -- echo
71
+ - run : cd examples && npm i && npm run test -- echo
54
72
test-libp2p-in-the-browser-example :
55
73
needs : check
56
74
runs-on : macos-latest
57
75
steps :
58
76
- uses : actions/checkout@v2
77
+ - uses : actions/setup-node@v2
78
+ with :
79
+ node-version : 16
59
80
- run : npm install
60
- - run : cd examples && yarn && npm run test -- libp2p-in-the-browser
81
+ - run : cd examples && npm i && npm run test -- libp2p-in-the-browser
61
82
test-peer-and-content-routing-example :
62
83
needs : check
63
84
runs-on : ubuntu-latest
64
85
steps :
65
86
- uses : actions/checkout@v2
87
+ - uses : actions/setup-node@v2
88
+ with :
89
+ node-version : 16
66
90
- run : npm install
67
- - run : cd examples && yarn && npm run test -- peer-and-content-routing
91
+ - run : cd examples && npm i && npm run test -- peer-and-content-routing
68
92
test-pnet-example :
69
93
needs : check
70
94
runs-on : ubuntu-latest
71
95
steps :
72
96
- uses : actions/checkout@v2
97
+ - uses : actions/setup-node@v2
98
+ with :
99
+ node-version : 16
73
100
- run : npm install
74
- - run : cd examples && yarn && npm run test -- pnet
101
+ - run : cd examples && npm i && npm run test -- pnet
75
102
test-protocol-and-stream-muxing-example :
76
103
needs : check
77
104
runs-on : ubuntu-latest
78
105
steps :
79
106
- uses : actions/checkout@v2
107
+ - uses : actions/setup-node@v2
108
+ with :
109
+ node-version : 16
80
110
- run : npm install
81
- - run : cd examples && yarn && npm run test -- protocol-and-stream-muxing
111
+ - run : cd examples && npm i && npm run test -- protocol-and-stream-muxing
82
112
test-pubsub-example :
83
113
needs : check
84
114
runs-on : ubuntu-latest
85
115
steps :
86
116
- uses : actions/checkout@v2
117
+ - uses : actions/setup-node@v2
118
+ with :
119
+ node-version : 16
87
120
- run : npm install
88
- - run : cd examples && yarn && npm run test -- pubsub
121
+ - run : cd examples && npm i && npm run test -- pubsub
89
122
test-transports-example :
90
123
needs : check
91
124
runs-on : ubuntu-latest
92
125
steps :
93
126
- uses : actions/checkout@v2
127
+ - uses : actions/setup-node@v2
128
+ with :
129
+ node-version : 16
94
130
- run : npm install
95
- - run : cd examples && yarn && npm run test -- transports
131
+ - run : cd examples && npm i && npm run test -- transports
96
132
test-webrtc-direct-example :
97
133
needs : check
98
134
runs-on : ubuntu-latest
99
135
steps :
100
136
- uses : actions/checkout@v2
101
- - run : npm install
102
- - run : cd examples && yarn && npm run test -- webrtc-direct
137
+ - uses : actions/setup-node@v2
138
+ with :
139
+ node-version : 16
140
+ - run : npm install -g @mapbox/node-pre-gyp && npm install
141
+ - run : cd examples && npm i && npm run test -- webrtc-direct
0 commit comments