aloof-beach-98822
06/28/2022, 1:37 PMwooden-teacher-96595
06/28/2022, 1:40 PMwooden-teacher-96595
06/28/2022, 1:41 PMaloof-beach-98822
06/28/2022, 1:52 PMbusy-honey-89505
06/28/2022, 2:25 PMsteps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Cypress run
uses: cypress-io/github-action@v4
with:
start: npm run develop
record: true
wait-on: 'http://localhost:8000'
wait-on-timeout: 120
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
the npm develop
job is
"develop": "gatsby develop",
which starts a server on port 8000
The logs state that the Gatsby develop
job has ran successfully:
You can now view your project in the browser.
ā
http://localhost:8000/
But Cypress fails to run. This is the error
http://localhost:8000 timed out on retry 271 of 9, elapsed 270697ms, limit 270000ms
Error: connect ECONNREFUSED 127.0.0.1:8000
busy-honey-89505
06/28/2022, 2:25 PMlate-planet-4481
06/28/2022, 2:53 PMdelightful-microphone-80931
06/28/2022, 2:54 PMmillions-architect-22884
06/28/2022, 2:54 PMlate-planet-4481
06/28/2022, 3:03 PMdelightful-microphone-80931
06/28/2022, 3:18 PMmillions-architect-22884
06/28/2022, 4:29 PMaloof-beach-98822
06/28/2022, 4:59 PMaloof-beach-98822
06/28/2022, 5:00 PMmillions-architect-22884
06/28/2022, 5:42 PMaloof-beach-98822
06/28/2022, 11:24 PMgray-kilobyte-89541
06/28/2022, 11:36 PMaloof-beach-98822
06/28/2022, 11:40 PMgray-kilobyte-89541
06/29/2022, 1:33 AMaloof-beach-98822
06/29/2022, 1:42 AMaloof-beach-98822
06/29/2022, 1:46 AMnice-continent-94474
06/29/2022, 3:28 AMnice-continent-94474
06/29/2022, 3:28 AMnice-continent-94474
06/29/2022, 3:29 AMbright-park-76512
06/29/2022, 6:35 AMambitious-school-63406
06/29/2022, 9:14 AMadorable-stone-42197
06/29/2022, 10:07 AMgray-kilobyte-89541
06/29/2022, 11:07 AMfull-journalist-87924
06/29/2022, 1:27 PMlate-planet-4481
06/29/2022, 1:36 PM