File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -36,17 +36,24 @@ jobs:
3636 working-directory : ${{ steps.crwa.outputs.project-path }}
3737
3838 - name : 🌲 Run Cypress
39- uses : cypress-io/github-action@f790eee7a50d9505912f50c2095510be7de06aa7 # v6.10.9
4039 env :
4140 CYPRESS_RW_PATH : ${{ steps.crwa.outputs.project-path }}
42- with :
43- browser : chrome
44- env : true
45- install : false
46- wait-on : ' http://[::1]:8910'
47- working-directory : ./tasks/e2e
48- spec : |
49- cypress/e2e/01-tutorial/*.cy.js
41+ working-directory : ./tasks/e2e
42+ run : |
43+ echo "Waiting for dev server..."
44+ attempt=0
45+ until curl --silent --fail http://[::1]:8910; do
46+ attempt=$((attempt + 1))
47+ if [ $attempt -ge 60 ]; then
48+ echo "Dev server did not start in time" >&2
49+ exit 1
50+ fi
51+ sleep 2
52+ done
53+ echo "Dev server is up"
54+ npx cypress run \
55+ --browser chrome \
56+ --spec 'cypress/e2e/01-tutorial/*.cy.js'
5057
5158 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5259 if : always()
You can’t perform that action at this time.
0 commit comments