Add Playwright report artifacts to CI and enable manual trigger

- Upload playwright-report and test-results artifacts after e2e tests
- Add workflow_dispatch for manual workflow triggering
- Temporarily enable always-on traces/videos/screenshots for testing
- Fix ESM imports in playwright.config.mts
This commit is contained in:
EnixCoda 2026-01-17 22:13:14 +08:00
parent 1083a48286
commit 19ac348bc8
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
name: Tests
on:
workflow_dispatch: # Manual trigger for testing
push:
branches:
- '**'

View file

@ -22,8 +22,9 @@ export default defineConfig({
timeout: 10000,
},
use: {
trace: 'on-first-retry',
video: 'on-first-retry',
trace: 'on', // TODO: revert to 'on-first-retry' after verifying GitHub Actions report
video: 'on', // TODO: revert to 'on-first-retry' after verifying GitHub Actions report
screenshot: 'on', // TODO: remove after verifying GitHub Actions report
},
projects: [
{