Skip to content

Commit 0316da9

Browse files
Merge pull request #43 from webdevnerdstuff/dev
more annoying tests
2 parents f3cfb2a + 3d2d336 commit 0316da9

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

.github/workflows/cypress.yml

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

55-
- name: Start preview server
56-
run: pnpm preview &
57-
58-
- name: Wait for server
59-
run: npx wait-on http://localhost:4173
60-
61-
- name: Run E2E tests
62-
run: pnpm cy:run:e2e
63-
64-
- name: Run Component tests
65-
run: pnpm cy:run:component
66-
67-
- name: Upload Cypress videos
68-
if: always()
69-
uses: actions/upload-artifact@v4
70-
with:
71-
name: cypress-videos
72-
path: cypress/videos
73-
74-
- name: Upload Cypress screenshots
75-
if: always()
76-
uses: actions/upload-artifact@v4
55+
- name: Cypress run
56+
uses: cypress-io/github-action@v6
7757
with:
78-
name: cypress-screenshots
79-
path: cypress/screenshots
58+
start: pnpm cy:run
59+
component: true
60+
browser: chrome

package.json

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

0 commit comments

Comments
 (0)