We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ac8f27 commit 2135c72Copy full SHA for 2135c72
.github/workflows/cypress.yml
@@ -9,7 +9,20 @@ jobs:
9
- name: Checkout
10
uses: actions/checkout@v4
11
12
- # Install npm dependencies, cache them correctly
+ # 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
26
# and run all Cypress tests
27
- name: Cypress run
28
uses: cypress-io/github-action@v6
0 commit comments