Skip to content

Commit 147435c

Browse files
chore(ci): Use Node 24 for running Cypress (#1384)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent b7ec231 commit 147435c

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/tutorial-e2e.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)