Skip to content

Types

Types #75

Workflow file for this run

name: Benchmark
on:
pull_request:
branches:
- main
jobs:
test_setup:
name: Test setup
runs-on: ubuntu-latest
outputs:
preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }}
steps:
- name: Wait for Vercel preview deployment to be ready
uses: patrickedqvist/[email protected]
id: waitForVercelPreviewDeployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 600
benchmark:
name: Benchmark
needs: test_setup
timeout-minutes: 10
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.42.0-jammy
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: 👷‍♂️ Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'pnpm'
- name: 🏗️ Install dependencies
run: pnpm install
- name: 📊 Run benchmark
working-directory: packages/e2e
run: pnpm benchmark
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ needs.test_setup.outputs.preview_url }}
- name: 📄 Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: packages/e2e/results