Skip to content

fix: add test command #10

fix: add test command

fix: add test command #10

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
background: true

Check failure on line 25 in .github/workflows/cypress-test.yml

View workflow run for this annotation

GitHub Actions / Cypress Tests

Invalid workflow file

The workflow is not valid. .github/workflows/cypress-test.yml (Line: 25, Col: 9): Unexpected value 'background'
- 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