Skip to content

Commit 4894f4c

Browse files
committed
Run tests against cloudflare and vercel
1 parent 1d68065 commit 4894f4c

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ jobs:
182182
SITE_BASE_URL: ${{ needs.deploy-v2-cloudflare.outputs.deployment-url }}/url/
183183
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
184184
ARGOS_BUILD_NAME: 'customers-v2'
185-
browserless-testing-v2:
185+
browserless-testing-v2-vercel:
186186
runs-on: ubuntu-latest
187-
name: Browserless Testing
187+
name: Browserless Testing v2 (Vercel)
188188
needs: deploy-v2-vercel
189189
steps:
190190
- name: Checkout
@@ -195,8 +195,26 @@ jobs:
195195
run: bun install --frozen-lockfile
196196
env:
197197
PUPPETEER_SKIP_DOWNLOAD: 1
198-
- name: Run integration tests
198+
- name: Run tests
199199
run: cd ./packages/gitbook && bun e2e-browserless
200200
env:
201201
BASE_URL: ${{needs.deploy-v2-vercel.outputs.deployment-url}}
202202
PAGESPEED_API_KEY: ${{ secrets.PAGESPEED_API_KEY }}
203+
browserless-testing-v2-cloudflare:
204+
runs-on: ubuntu-latest
205+
name: Browserless Testing v2 (Cloudflare)
206+
needs: deploy-v2-cloudflare
207+
steps:
208+
- name: Checkout
209+
uses: actions/checkout@v4
210+
- name: Setup Bun
211+
uses: ./.github/composite/setup-bun
212+
- name: Install dependencies
213+
run: bun install --frozen-lockfile
214+
env:
215+
PUPPETEER_SKIP_DOWNLOAD: 1
216+
- name: Run tests
217+
run: cd ./packages/gitbook && bun e2e-browserless
218+
env:
219+
BASE_URL: ${{needs.deploy-v2-cloudflare.outputs.deployment-url}}
220+
PAGESPEED_API_KEY: ${{ secrets.PAGESPEED_API_KEY }}

0 commit comments

Comments
 (0)