fix: update test #14
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: 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 |