Skip to content

ci: Upload playwright traces #10786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,13 @@ jobs:
PW_BUNDLE: ${{ matrix.bundle }}
working-directory: dev-packages/browser-integration-tests
run: yarn test:ci${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
- name: Upload Playwright Traces
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-traces
path: dev-packages/browser-integration-tests/test-results


job_browser_loader_tests:
name: Playwright Loader (${{ matrix.bundle }}) Tests
Expand Down Expand Up @@ -772,6 +779,12 @@ jobs:
run: |
cd dev-packages/browser-integration-tests
yarn test:loader
- name: Upload Playwright Traces
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-traces
path: dev-packages/browser-integration-tests/test-results

job_browser_integration_tests:
name: Browser (${{ matrix.browser }}) Tests
Expand Down
4 changes: 4 additions & 0 deletions dev-packages/browser-integration-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const config: PlaywrightTestConfig = {
workers: process.env.CI ? 3 : undefined,
testMatch: /test.ts/,

use: {
trace: process.env.CI ? 'retry-with-trace' : 'off',
},

projects: [
{
name: 'chromium',
Expand Down