Skip to content

Commit ca6f94f

Browse files
committed
chore: only upload video and trace on failure.
1 parent be443e6 commit ca6f94f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ jobs:
6060
run-tests:
6161
runs-on: ubuntu-latest
6262
needs: build-simulator
63-
strategy:
64-
fail-fast: false
65-
matrix:
66-
attempt: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
6763
steps:
6864
- uses: actions/checkout@v3
6965

@@ -93,14 +89,14 @@ jobs:
9389
- name: Restore executable permission
9490
run: chmod +x simulator-bin/simulator
9591

96-
- name: Run Playwright tests attempt ${{ matrix.attempt }}
92+
- name: Run Playwright tests
9793
env:
9894
SIMULATOR_PATH: ${{ github.workspace }}/simulator-bin/simulator
9995
run: make webe2etest
10096

10197
- name: Upload Playwright artifacts
102-
if: always()
98+
if: failure()
10399
uses: actions/upload-artifact@v4
104100
with:
105-
name: playwright-artifacts-${{ matrix.attempt }}
101+
name: playwright-artifacts
106102
path: frontends/web/test-results/*

frontends/web/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default defineConfig({
2222
use: {
2323
baseURL: `http://${HOST}:${FRONTEND_PORT}`,
2424
headless: true,
25-
video: 'on',
25+
video: 'retain-on-failure',
2626
screenshot: 'only-on-failure',
27-
trace: 'on',
27+
trace: 'retain-on-failure',
2828
launchOptions: {
2929
// By default, tests are not run in slow motion.
3030
// Can be enabled by setting the PLAYWRIGHT_SLOW_MO environment variable to a value > 0.

0 commit comments

Comments
 (0)