File tree 2 files changed +5
-25
lines changed
2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 52
52
- name : Clear Vite cache
53
53
run : rm -rf node_modules/.vite
54
54
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
77
57
with :
78
- name : cypress-screenshots
79
- path : cypress/screenshots
58
+ start : pnpm cy:run
59
+ component : true
60
+ browser : chrome
Original file line number Diff line number Diff line change 23
23
"test:dev" : " vitest" ,
24
24
"test:all" : " vitest --run" ,
25
25
"test:build" : " vitest --run --bail 1" ,
26
- "preview" : " vite preview --port 4173" ,
27
26
"cy:run" : " npx cypress run --e2e && npx cypress run --component --headless" ,
28
27
"cy:run:e2e" : " npx cypress run --headless --browser electron" ,
29
28
"cy:run:component" : " npx cypress run --headless --component electron" ,
You can’t perform that action at this time.
0 commit comments