Skip to content

Performance Tests #126603

Performance Tests

Performance Tests #126603

Workflow file for this run

name: Performance Tests
on:
deployment_status:
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
if: github.event_name == 'deployment_status' && github.event.deployment.environment == 'production' && github.event.deployment_status.state == 'success' && startsWith(github.event.deployment_status.target_url, 'https://performance-studio')
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
- name: Store Playwright's Version
id: playwright-version
run: |
PLAYWRIGHT_VERSION=$(npx playwright --version | sed 's/Version //')
echo "Playwright's Version: $PLAYWRIGHT_VERSION"
echo "version=${PLAYWRIGHT_VERSION}" >> "$GITHUB_OUTPUT"
- name: Cache Playwright Browsers for Playwright's Version
id: cache-playwright-browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ steps.playwright-version.outputs.version }}-playwright-browsers
- name: Install Playwright Browsers
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
working-directory: ./perf
run: npx playwright install --with-deps
- name: Run Performance Tests
working-directory: ./perf
env:
BRANCH_DEPLOYMENT_URL: ${{ github.event.deployment_status.target_url }}
PERF_TEST_BRANCH: "main"
PERF_TEST_SANITY_TOKEN: ${{ secrets.PERF_TEST_SANITY_TOKEN }}
PERF_TEST_METRICS_TOKEN: ${{ secrets.PERF_TEST_METRICS_TOKEN }}
run: pnpm perf:test:ci