Skip to content

add http server

add http server #5

Workflow file for this run

name: Cypress Tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Install dependencies
- name: Install dependencies
run: npm ci
# Install http-server to serve the HTML files
- name: Install http-server
run: npm install -g http-server
# Start the server and serve the HTML file
- name: Start http-server
run: |
nohup http-server -p 3000 . &
sleep 5 # Give the server some time to start
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6
with:
browser: chrome
config: pageLoadTimeout=100000,baseUrl=http://localhost:3000