Skip to content

Update cypress-test.yml #11

Update cypress-test.yml

Update cypress-test.yml #11

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: 14
- name: Install dependencies
run: npm install
- name: Start server (adjust the command as per your project)
run: npm run start
- name: Wait for server to start
run: |
npx wait-on http://localhost:3000
sleep 5
- name: Run Cypress tests
run: npm run cy:run
- name: Stop server (adjust the command as per your project)
run: kill $(lsof -t -i:3000) || true