diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index cb0cd24..aab3630 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -25,3 +25,10 @@ jobs: - name: Run E2E tests on ${{ matrix.project }} run: npx playwright test --project ${{ matrix.project }} continue-on-error: ${{ matrix.project == 'webkit' }} + - name: Upload test results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-results-${{ matrix.project }} + path: test-results + diff --git a/package.json b/package.json index 66887a8..cfecedc 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "scripts": { "start": "vite --host localhost --port 3000 --open", "serve": "vite --host", - "build": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite build --outDir build/v0.1.0", + "build": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite build --outDir build", "build-no-minify": "cross-env NO_MINIFY=true npm run build", "test": "jest --coverage", "eslint": "eslint src/* ", @@ -66,4 +66,4 @@ "typescript": "^5.0.2", "vite": "^4.2.1" } -} +} \ No newline at end of file diff --git a/playwright.config.ts b/playwright.config.ts index 9f3f4af..ae46670 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -7,10 +7,11 @@ const viewportOverride: ViewportSize = { const config: PlaywrightTestConfig = { testDir: 'test-e2e', - retries: 0, + retries: 1, use: { headless: true, ignoreHTTPSErrors: true, + trace: 'retain-on-failure', // video: 'on-first-retry', launchOptions: { // slowMo: 250,