Skip to content

Commit fdeaadf

Browse files
author
Luca Forstner
authored
ci: Upload playwright traces (#10786)
1 parent be90d82 commit fdeaadf

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,13 @@ jobs:
715715
PW_BUNDLE: ${{ matrix.bundle }}
716716
working-directory: dev-packages/browser-integration-tests
717717
run: yarn test:ci${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
718+
- name: Upload Playwright Traces
719+
uses: actions/upload-artifact@v3
720+
if: always()
721+
with:
722+
name: playwright-traces
723+
path: dev-packages/browser-integration-tests/test-results
724+
718725

719726
job_browser_loader_tests:
720727
name: Playwright Loader (${{ matrix.bundle }}) Tests
@@ -772,6 +779,12 @@ jobs:
772779
run: |
773780
cd dev-packages/browser-integration-tests
774781
yarn test:loader
782+
- name: Upload Playwright Traces
783+
uses: actions/upload-artifact@v3
784+
if: always()
785+
with:
786+
name: playwright-traces
787+
path: dev-packages/browser-integration-tests/test-results
775788

776789
job_browser_integration_tests:
777790
name: Browser (${{ matrix.browser }}) Tests

dev-packages/browser-integration-tests/playwright.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const config: PlaywrightTestConfig = {
1010
workers: process.env.CI ? 3 : undefined,
1111
testMatch: /test.ts/,
1212

13+
use: {
14+
trace: process.env.CI ? 'retry-with-trace' : 'off',
15+
},
16+
1317
projects: [
1418
{
1519
name: 'chromium',

0 commit comments

Comments
 (0)