Skip to content

fix: remove wait command #16

fix: remove wait command

fix: remove wait command #16

Workflow file for this run

name: Cypress Tests
on: [push]
jobs:
cypress-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.AUTO_RELEASE_PAT }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install --force
- name: Build (adjust the command as per your project)
run: npm run build:prod
- name: Run (adjust the command as per your project)
run: npm run serve
# - name: Wait for server to start
# run: |
# npx wait-on http://localhost:9000
# sleep 5
- name: Run Cypress tests
run: npm run cy:run --headless
- name: Stop server (adjust the command as per your project)
run: kill $(lsof -t -i:9000) || true