13
13
description : " Docker hub image name taken from https://hub.docker.com/r/statusteam/nim-waku/tags. Format: statusteam/nim-waku:v0.19.0"
14
14
required : false
15
15
type : string
16
- workflow_call :
17
- inputs :
18
- nim_wakunode_image :
19
- required : false
20
- type : string
21
- caller :
22
- required : false
23
- type : string
24
16
25
17
env :
26
18
NODE_JS : " 18"
27
19
28
20
jobs :
29
21
check :
30
22
runs-on : ubuntu-latest
31
- if : ${{ inputs.caller == null || inputs.caller != 'nwaku' }}
32
23
steps :
33
24
- uses : actions/checkout@v3
34
25
with :
44
35
45
36
proto :
46
37
runs-on : ubuntu-latest
47
- if : ${{ inputs.caller == null || inputs.caller != 'nwaku' }}
48
38
steps :
49
39
- uses : actions/checkout@v3
50
40
with :
66
56
67
57
browser :
68
58
runs-on : ubuntu-latest
69
- if : ${{ inputs.caller == null || inputs.caller != 'nwaku' }}
70
59
steps :
71
60
- uses : actions/checkout@v3
72
61
with :
@@ -79,145 +68,35 @@ jobs:
79
68
- run : npm run test:browser
80
69
81
70
node :
82
- runs-on : ubuntu-latest
83
- env :
84
- WAKUNODE_IMAGE : ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
85
- steps :
86
- - uses : actions/checkout@v3
87
- with :
88
- repository : waku-org/js-waku
89
-
90
- - uses : actions/setup-node@v3
91
- with :
92
- node-version : ${{ env.NODE_JS }}
93
-
94
- - uses : ./.github/actions/npm
95
-
96
- - run : npm run build:esm
97
-
98
- - run : npm run test:node
99
- env :
100
- DEBUG : " "
101
-
102
- - name : Upload debug logs on failure
103
- uses : actions/upload-artifact@v3
104
- if : failure()
105
- with :
106
- name : debug.log
107
- path : debug.log
108
-
109
- - name : Upload nwaku logs on failure
110
- uses : actions/upload-artifact@v3
111
- if : failure()
112
- with :
113
- name : nwaku-logs
114
- path : packages/tests/log/
71
+ uses : ./.github/workflows/test-node.yml
72
+ with :
73
+ nim_wakunode_image : ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
74
+ test_type : node
115
75
116
76
node_optional :
117
- runs-on : ubuntu-latest
118
- env :
119
- WAKUNODE_IMAGE : ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
120
-
121
- steps :
122
- - uses : actions/checkout@v3
123
- with :
124
- repository : waku-org/js-waku
125
-
126
- - uses : actions/setup-node@v3
127
- with :
128
- node-version : ${{ env.NODE_JS }}
129
-
130
- - uses : ./.github/actions/npm
131
-
132
- - run : npm run build:esm
133
-
134
- - run : npm run test:optional --workspace=@waku/tests
135
- env :
136
- DEBUG : " "
77
+ uses : ./.github/workflows/test-node.yml
78
+ with :
79
+ nim_wakunode_image : ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
80
+ test_type : node-optional
137
81
138
82
node_with_go_waku_master :
139
- runs-on : ubuntu-latest
140
- if : ${{ inputs.caller == null || inputs.caller != 'nwaku' }}
141
- env :
142
- WAKUNODE_IMAGE : " statusteam/go-waku:latest"
143
- WAKU_SERVICE_NODE_PARAMS : " --min-relay-peers-to-publish=0" # Can be removed once https://github.com/status-im/nwaku/issues/1004 is done
144
- DEBUG : " waku*"
145
- steps :
146
- - uses : actions/checkout@v3
147
- with :
148
- repository : waku-org/js-waku
149
-
150
- - name : Install NodeJS
151
- uses : actions/setup-node@v3
152
- with :
153
- node-version : ${{ env.NODE_JS }}
154
-
155
- - uses : ./.github/actions/npm
156
-
157
- - run : npm run build:esm
158
-
159
- - run : npm run test:node
160
- env :
161
- DEBUG : " waku:nwaku*,waku:test*"
162
-
163
- - name : Upload debug logs on failure
164
- uses : actions/upload-artifact@v3
165
- if : failure()
166
- with :
167
- name : go-waku-debug.log
168
- path : debug.log
169
-
170
- - name : Upload logs on failure
171
- uses : actions/upload-artifact@v3
172
- if : failure()
173
- with :
174
- name : go-waku-logs
175
- path : packages/tests/log/
83
+ uses : ./.github/workflows/test-node.yml
84
+ with :
85
+ nim_wakunode_image : statusteam/go-waku:latest
86
+ test_type : go-waku-master
87
+ debug : waku*
176
88
177
89
node_with_nwaku_master :
178
- runs-on : ubuntu-latest
179
- if : ${{ inputs.caller == null || inputs.caller != 'nwaku' }}
180
- env :
181
- DEBUG : " waku*"
182
- WAKUNODE_IMAGE : " statusteam/nim-waku:deploy-wakuv2-test"
183
- steps :
184
- - uses : actions/checkout@v3
185
- with :
186
- repository : waku-org/js-waku
187
-
188
- - uses : actions/setup-node@v3
189
- with :
190
- node-version : ${{ env.NODE_JS }}
191
-
192
- - uses : ./.github/actions/npm
193
-
194
- - run : npm run build:esm
195
-
196
- - run : npm run test:node
197
- env :
198
- DEBUG : " waku:nwaku*,waku:test*"
199
-
200
- - name : Upload debug logs on failure
201
- uses : actions/upload-artifact@v3
202
- if : failure()
203
- with :
204
- name : nwaku-master-debug.log
205
- path : debug.log
206
-
207
- - name : Upload logs on failure
208
- uses : actions/upload-artifact@v3
209
- if : failure()
210
- with :
211
- name : nwaku-master-logs
212
- path : packages/tests/log/
90
+ uses : ./.github/workflows/test-node.yml
91
+ with :
92
+ nim_wakunode_image : statusteam/nim-waku:deploy-wakuv2-test
93
+ test_type : nwaku-master
94
+ debug : waku*
213
95
214
96
maybe-release :
215
97
name : release
216
98
runs-on : ubuntu-latest
217
- if : >
218
- github.event_name == 'push' &&
219
- github.ref == 'refs/heads/master' &&
220
- (github.event.inputs.caller == null || github.event.inputs.caller != 'nwaku')
99
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
221
100
needs : [check, proto, browser, node]
222
101
steps :
223
102
- uses : google-github-actions/release-please-action@v3
0 commit comments