fix: add test command #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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 |