7777 - name : npm run test-exports
7878 run : npm run test-exports
7979
80- browser :
81- name : Test Browser using Node 14.x
80+ browser-realtime :
81+ name : Test Browser Realtime
8282 runs-on : ubuntu-latest
8383 needs : build
8484 steps :
@@ -95,15 +95,41 @@ jobs:
9595 - name : Start Streamr Docker Stack
9696 uses : streamr-dev/streamr-docker-dev-action@v1.0.0-alpha.3
9797 with :
98- services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge broker-node-no-storage-1 broker-node-no-storage-2 broker-node-storage-1 nginx smtp"
98+ services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge brokers trackers nginx smtp"
99+ - uses : nick-invision/retry@v2
100+ name : Run Realtime Test
101+ with :
102+ max_attempts : 3
103+ timeout_minutes : 3
104+ retry_on : error
105+ command : npm run test-browser-realtime
99106
107+ browser-resend :
108+ name : Test Browser Realtime + Resend
109+ runs-on : ubuntu-latest
110+ needs : build
111+ steps :
112+ - uses : actions/checkout@v2
113+ - uses : actions/setup-node@v2
114+ with :
115+ node-version : " 14.x"
116+ - uses : actions/download-artifact@v2
117+ with :
118+ name : build
119+ path : dist
120+ - name : npm ci
121+ run : npm ci
122+ - name : Start Streamr Docker Stack
123+ uses : streamr-dev/streamr-docker-dev-action@v1.0.0-alpha.3
124+ with :
125+ services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge brokers trackers nginx smtp"
100126 - uses : nick-invision/retry@v2
101- name : Run Test
127+ name : Run Resend Test
102128 with :
103129 max_attempts : 3
104130 timeout_minutes : 3
105131 retry_on : error
106- command : npm run test-browser
132+ command : npm run test-browser-resend
107133
108134 benchmarks :
109135 name : Test Benchmark using Node ${{ matrix.node-version }}
@@ -125,7 +151,7 @@ jobs:
125151 - name : Start Streamr Docker Stack
126152 uses : streamr-dev/streamr-docker-dev-action@v1.0.0-alpha.3
127153 with :
128- services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge broker-node-no-storage-1 broker-node-no-storage-2 broker-node-storage-1 nginx smtp"
154+ services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge brokers trackers nginx smtp"
129155 - name : npm ci
130156 run : npm ci
131157 - name : benchmarks
@@ -159,6 +185,8 @@ jobs:
159185 NUM_MESSAGES : 20
160186 TEST_NAME : ${{ matrix.test-name }}
161187 CONFIG_NAME : ${{ matrix.config-name }}
188+ LOG_LEVEL_JAVA_CLIENT : ' debug'
189+ LOG_LEVEL_PUBLISHER_JS : ' debug'
162190 steps :
163191 - uses : actions/checkout@v2
164192 - name : Use Node.js 14
@@ -172,7 +200,7 @@ jobs:
172200 - name : Start Streamr Docker Stack
173201 uses : streamr-dev/streamr-docker-dev-action@v1.0.0-alpha.3
174202 with :
175- services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge broker-node-no-storage-1 broker-node-no-storage-2 broker-node-storage-1 nginx smtp"
203+ services-to-start : " mysql redis core-api cassandra parity-node0 parity-sidechain-node0 bridge brokers trackers nginx smtp"
176204 - name : npm ci
177205 run : npm ci
178206 - name : npm link
@@ -194,7 +222,18 @@ jobs:
194222 - uses : nick-invision/retry@v2
195223 name : run-client-testing
196224 with :
197- max_attempts : 2
225+ max_attempts : 5
198226 timeout_minutes : 15
199227 retry_on : error
200228 command : cd streamr-client-testing && DEBUG='' java -jar build/libs/client_testing-1.0-SNAPSHOT.jar -s $TEST_NAME -c config/$CONFIG_NAME.conf -n $NUM_MESSAGES
229+ - name : Collect docker logs on failure
230+ if : failure()
231+ uses : jwalton/gh-docker-logs@v1
232+ with :
233+ dest : ' ./logs'
234+ - name : Upload logs to GitHub
235+ if : failure()
236+ uses : actions/upload-artifact@master
237+ with :
238+ name : docker-logs-${{ github.job }}-${{ github.run_number }}-${{ github.run_id }}
239+ path : ./logs
0 commit comments