mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Publish traces to vercel
This commit is contained in:
parent
bb3d2b96a9
commit
dbd3ecf48e
22
.github/workflows/playwright.yaml
vendored
22
.github/workflows/playwright.yaml
vendored
@ -36,6 +36,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Install Vercel CLI
|
||||||
|
run: pnpm install -g vercel@latest
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
- name: Install Playwright browsers
|
||||||
run: pnpm playwright install chromium
|
run: pnpm playwright install chromium
|
||||||
|
|
||||||
@ -54,15 +57,18 @@ jobs:
|
|||||||
NUT_PASSWORD: ${{ secrets.NUT_PASSWORD }}
|
NUT_PASSWORD: ${{ secrets.NUT_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: playwright-report
|
name: playwright-report
|
||||||
path: playwright-report/
|
path: playwright-report/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Install Vercel CLI
|
- name: Deploy playwright report to Vercel
|
||||||
run: pnpm install -g vercel@latest
|
run: |
|
||||||
|
cd playwright-report
|
||||||
|
vercel link --project playwright-reports --yes --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
vercel deploy --yes --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
- name: Deploy to Vercel with Supabase Target
|
- name: Deploy to Vercel with Supabase Target
|
||||||
id: deploy
|
id: deploy
|
||||||
@ -96,7 +102,7 @@ jobs:
|
|||||||
|
|
||||||
# Run Playwright tests against the newly deployed URL
|
# Run Playwright tests against the newly deployed URL
|
||||||
- name: Run Playwright tests against Supabase deployment
|
- name: Run Playwright tests against Supabase deployment
|
||||||
run: pnpm run test:e2e
|
run: pnpm run test:e2e --reporter=html
|
||||||
env:
|
env:
|
||||||
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.deploy.outputs.WITH_SUPABASE_PREVIEW_URL }}
|
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.deploy.outputs.WITH_SUPABASE_PREVIEW_URL }}
|
||||||
SUPABASE_TEST_USER_EMAIL: ${{ secrets.SUPABASE_TEST_USER_EMAIL }}
|
SUPABASE_TEST_USER_EMAIL: ${{ secrets.SUPABASE_TEST_USER_EMAIL }}
|
||||||
@ -105,9 +111,15 @@ jobs:
|
|||||||
NUT_PASSWORD: ${{ secrets.NUT_PASSWORD }}
|
NUT_PASSWORD: ${{ secrets.NUT_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: playwright-report-supabase
|
name: playwright-report-supabase
|
||||||
path: playwright-report/
|
path: playwright-report/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
|
- name: Deploy Supabase playwright report to Vercel
|
||||||
|
run: |
|
||||||
|
cd playwright-report
|
||||||
|
vercel link --project playwright-reports --yes --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
vercel deploy --yes --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
||||||
|
877
pnpm-lock.yaml
877
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user