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