Skip to content

Commit f3cfb2a

Browse files
Merge pull request #42 from webdevnerdstuff/dev
workflow tests
2 parents aad216b + c968bac commit f3cfb2a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/cypress.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ jobs:
5252
- name: Clear Vite cache
5353
run: rm -rf node_modules/.vite
5454

55-
- name: Start dev server
56-
run: pnpm dev &
55+
- name: Start preview server
56+
run: pnpm preview &
5757

5858
- name: Wait for server
59-
run: npx wait-on http://localhost:5173
59+
run: npx wait-on http://localhost:4173
6060

6161
- name: Run E2E tests
6262
run: pnpm cy:run:e2e

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"test:dev": "vitest",
2424
"test:all": "vitest --run",
2525
"test:build": "vitest --run --bail 1",
26+
"preview": "vite preview --port 4173",
2627
"cy:run": "npx cypress run --e2e && npx cypress run --component --headless",
2728
"cy:run:e2e": "npx cypress run --headless --browser electron",
2829
"cy:run:component": "npx cypress run --headless --component electron",

0 commit comments

Comments
 (0)