Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait-on does not detect my running server in my turborepo project #1286

Closed
tomitrescak opened this issue Oct 23, 2024 · 3 comments
Closed

wait-on does not detect my running server in my turborepo project #1286

tomitrescak opened this issue Oct 23, 2024 · 3 comments

Comments

@tomitrescak
Copy link

Hello, I followed your advice to run the server on 0.0.0.0 but the server is still not detected that it runs.
This is the message how it hangs up:

image

AND THIS IS MY ACTION. Not that I have a monorepo with cypress in a separate folder, not sure how can I make this run ;(

name: Cypress Tests
on: [push]
jobs:
  cypress-run:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - name: Start MongoDB
        uses: supercharge/[email protected]
        with:
          mongodb-version: 6.0
      - uses: pnpm/action-setup@v2
        with:
          version: 9.4.0
      - name: Get pnpm store directory
        id: pnpm-cache
        shell: bash
        run: |
          echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
      - name: Install dependencies 🧪
        uses: cypress-io/github-action@v6
        with:
          # just perform install
          runTests: false
      - name: Build the project 🏗
        run: pnpm turbo build
      - name: Start the server 🚀
        working-directory: apps/web/
        run: nohup pnpm start -H 0.0.0.0 &
      - name: Run Cypress tests 🧪
        uses: cypress-io/github-action@v6
        with:
          working-directory: apps/cypress/
          install: false
          browser: chrome
          wait-on: "http://0.0.0.0:3000" # Waits for abov
@MikeMcC399
Copy link
Collaborator

@tomitrescak

You might try updating to next@latest = [email protected] instead of using a release candidate.

Also you could try waiting for http://localhost:3000 or http://127.0.0.1.

There are debugging instructions in https://github.com/cypress-io/github-action/blob/master/README.md#debugging.

@MikeMcC399
Copy link
Collaborator

@tomitrescak

I suggest also that you check your action log which I expect will inform you that you are using deprecated action versions including:

@tomitrescak
Copy link
Author

All good, never made it work so I used the server start in the same action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants