File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-20.04
1111 strategy :
1212 matrix :
13- node-version : [18]
13+ node-version : [18.14 ]
1414 steps :
1515 - name : Checkout
1616 uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -25,15 +25,24 @@ jobs:
2525 - name : Install dependencies
2626 run : pnpm install --frozen-lockfile
2727
28+ - name : Build
29+ run : pnpm build
30+
2831 - name : Cypress install
2932 run : ./node_modules/cypress/bin/cypress install
3033
3134 - name : Cypress run
32- uses : cypress-io/github-action@v5
35+ uses : cypress-io/github-action@v4
3336 with :
3437 install : false
38+ # build playground
39+ # build: pnpm dev:playground
40+ # start playground
3541 start : pnpm dev:playground
36- wait-on : ' http://localhost:5173/'
42+ command : pnpm e2e
43+ # FIXME: this breaks it
44+ # wait-on: 'http://localhost:5173'
45+ # project: /packages/react-use-intercom
3746
3847 # after the test run completes
3948 # store videos and any screenshots
4655 if : failure()
4756 with :
4857 name : cypress-screenshots
49- path : cypress/screenshots
58+ path : ./packages/react-use-intercom/ cypress/screenshots
Original file line number Diff line number Diff line change 55 runs-on : ubuntu-20.04
66 strategy :
77 matrix :
8- node-version : [18]
8+ node-version : [18.14 ]
99
1010 steps :
1111 - name : Checkout
Original file line number Diff line number Diff line change 55 runs-on : ubuntu-20.04
66 strategy :
77 matrix :
8- node-version : [18]
8+ node-version : [18.14 ]
99
1010 steps :
1111 - name : Checkout
Original file line number Diff line number Diff line change 1313 runs-on : ubuntu-20.04
1414 strategy :
1515 matrix :
16- node-version : [18]
16+ node-version : [18.14 ]
1717
1818 steps :
1919 - name : Checkout
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "dev" : " vite" ,
88 "build" : " tsc && vite build" ,
9- "preview" : " vite preview"
9+ "preview" : " vite preview --host "
1010 },
1111 "dependencies" : {
1212 "react" : " ^18.2.0" ,
Original file line number Diff line number Diff line change @@ -3,5 +3,8 @@ import { defineConfig } from 'vite';
33
44// https://vitejs.dev/config/
55export default defineConfig ( {
6+ preview : {
7+ port : 5173 ,
8+ } ,
69 plugins : [ react ( ) ] ,
710} ) ;
You can’t perform that action at this time.
0 commit comments