Skip to content

Commit

Permalink
Added server run check
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 committed Nov 15, 2024
1 parent 0305fb4 commit a2f3e55
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Start the development server
run: pnpm run dev &
run: |
pnpm run dev -- --host --port $PORT > vite.log 2>&1 &
echo $! > vite.pid
env:
PORT: 3001
VITE_PARSEABLE_URL: https://demo.parseable.com
VITE_BASIC_AUTH: true
VITE_USERNAME: admin
VITE_PASSWORD: admin
- name: Echo
- name: Wait for the server to be ready
run: |
echo "PORT: $PORT"
echo "VITE_PARSEABLE_URL: $VITE_PARSEABLE_URL"
echo "VITE_BASIC_AUTH: $VITE_BASIC_AUTH"
echo "VITE_USERNAME: $VITE_USERNAME"
echo "VITE_PASSWORD: $VITE_PASSWORD"
timeout 30 bash -c 'until curl -sf http://localhost:$PORT; do sleep 1; done'
- name: Run Playwright tests
run: pnpm exec playwright test
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a2f3e55

Please sign in to comment.