File tree Expand file tree Collapse file tree
guides/vercel-integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ This means that you can either create a new Endform account through Vercel or co
3333 on :
3434 pull_request : # or push: if you want to run on commits to main
3535 branches :
36- - main
36+ - main
3737
3838 permissions :
3939 contents : read
@@ -43,15 +43,25 @@ This means that you can either create a new Endform account through Vercel or co
4343 e2e :
4444 runs-on : ubuntu-latest
4545 steps :
46- # Checkout, install Node and install dependencies first...
46+ # Your usual setup steps, adjust them to match your project
47+ - name : Checkout repository
48+ uses : actions/checkout@v4
49+
50+ - name : Install Node
51+ uses : actions/setup-node@v4
52+
53+ - name : Set up pnpm (or whichever package manager you use)
54+ uses : pnpm/action-setup@v4
55+ with :
56+ run_install : true
4757
4858 - name : Wait for Vercel deployment
4959 uses : endformdev/actions/run-with-vercel-deployment@main
5060 with :
5161 project-name : your-vercel-project-name
52- set-url-env-var : BASE_URL # Export the preview URL for your playwright.config.ts to pick up
62+ set-url-env-var : BASE_URL # Export the preview URL for your playwright.config.ts to pick up
5363
54- - name : Run end-to-end tests with Endform
64+ - name : Run end-to-end tests with Endform
5565 run : npx endform@latest test
5666 ` ` `
5767
Original file line number Diff line number Diff line change @@ -99,15 +99,17 @@ Let's make a CI workflow that runs the tests with Endform.
9999name : Endform tests on main
100100
101101on :
102- repository_dispatch :
103- types : - 'vercel.deployment.success'
102+ repository_dispatch :
103+ types :
104+ - ' vercel.deployment.success'
104105
105106jobs :
106- e2e-tests :
107- timeout-minutes : 5
108- runs-on : ubuntu-latest
109- steps : - name: Checkout code
110- uses : actions/checkout@v4
107+ e2e-tests :
108+ timeout-minutes : 5
109+ runs-on : ubuntu-latest
110+ steps :
111+ - name : Checkout code
112+ uses : actions/checkout@v4
111113
112114 - name : Set up pnpm
113115 uses : pnpm/action-setup@v4
You can’t perform that action at this time.
0 commit comments