Skip to content

Commit 9df43b5

Browse files
committed
Update workflows
1 parent 030daa1 commit 9df43b5

2 files changed

Lines changed: 23 additions & 11 deletions

File tree

‎src/content/docs/guides/vercel-integration/installing-the-vercel-integration.mdx‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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

‎src/content/docs/tutorial/speeding-up-with-endform.mdx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,17 @@ Let's make a CI workflow that runs the tests with Endform.
9999
name: Endform tests on main
100100

101101
on:
102-
repository_dispatch:
103-
types: - 'vercel.deployment.success'
102+
repository_dispatch:
103+
types:
104+
- 'vercel.deployment.success'
104105

105106
jobs:
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

0 commit comments

Comments
 (0)