Skip to content

Commit 2135c72

Browse files
committed
add http server
1 parent 6ac8f27 commit 2135c72

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/cypress.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ jobs:
99
- name: Checkout
1010
uses: actions/checkout@v4
1111

12-
# Install npm dependencies, cache them correctly
12+
# Install dependencies
13+
- name: Install dependencies
14+
run: npm ci
15+
16+
# Install http-server to serve the HTML files
17+
- name: Install http-server
18+
run: npm install -g http-server
19+
20+
# Start the server and serve the HTML file
21+
- name: Start http-server
22+
run: |
23+
nohup http-server -p 3000 . &
24+
sleep 5 # Give the server some time to start
25+
1326
# and run all Cypress tests
1427
- name: Cypress run
1528
uses: cypress-io/github-action@v6

0 commit comments

Comments
 (0)