From 83f08a6bc328d1e43c8ab015eca1fb020f1384b4 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 14 Mar 2021 12:16:14 +0000 Subject: [PATCH] diff --- .github/workflows/collaboration.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/collaboration.yml b/.github/workflows/collaboration.yml index f206acd35..5df149374 100644 --- a/.github/workflows/collaboration.yml +++ b/.github/workflows/collaboration.yml @@ -34,13 +34,16 @@ jobs: - name: Run Etherpad & Tests run: | node src/node/server.js & + # check for initial connectivity curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test cd src/tests/frontend + # build first + xvfb-run -a cypress run --spec cypress/integration/test.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/build + # run collaboration tests xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser1 & xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser2 & xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser3 & xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser4 - # We still to do a curl check above just to ensure Etherpad is responding before cypress starts - name: Sleep for 30 seconds for videos to encode uses: whatnick/wait-action@master