feat(ai-openrouter): surface generation metadata on RUN_FINISHED #3200
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, alpha, beta, rc] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Tools | |
| uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main | |
| - name: Cache Playwright Browsers | |
| id: playwright-cache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: playwright-${{ hashFiles('testing/e2e/package.json') }} | |
| restore-keys: | | |
| playwright- | |
| - name: Build Packages | |
| run: pnpm run build:all | |
| # GitHub-hosted ubuntu-24.04 already has Chromium system libs. | |
| # install-deps / --with-deps run apt-get against azure.archive.ubuntu.com | |
| # and that mirror hangs, which kills this job. | |
| - name: Install Playwright Chromium | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: pnpm --filter @tanstack/ai-e2e exec playwright install chromium | |
| - name: Run E2E Tests | |
| run: pnpm --filter @tanstack/ai-e2e test:e2e | |
| - name: Upload Video Recordings | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: always() | |
| with: | |
| name: e2e-videos | |
| path: testing/e2e/test-results/**/*.webm | |
| retention-days: 14 | |
| - name: Upload Playwright Report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: always() | |
| with: | |
| name: e2e-report | |
| path: testing/e2e/playwright-report/ | |
| retention-days: 14 | |
| - name: Upload Traces (on failure) | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: failure() | |
| with: | |
| name: e2e-traces | |
| path: testing/e2e/test-results/**/*.zip | |
| retention-days: 14 |