From f8a8bfa2a07a9596fc2a6b9f408e30b7c5c56528 Mon Sep 17 00:00:00 2001 From: jackkav Date: Tue, 15 Apr 2025 12:33:22 +0200 Subject: [PATCH] workflow --- .github/workflows/test.yml | 8 +++++++- packages/insomnia-smoke-test/playwright.config.ts | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82f8c5adb4..f8213d2226 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,4 +48,10 @@ jobs: - name: Smoke test electron app run: | npm run test:build -w packages/insomnia-smoke-test -- --project=Smoke - + + - name: Upload smoke test html + uses: actions/upload-artifact@v4 + with: + if-no-files-found: ignore + name: ubuntu-smoke-test-traces-${{ github.run_number }} + path: packages/insomnia-smoke-test/traces diff --git a/packages/insomnia-smoke-test/playwright.config.ts b/packages/insomnia-smoke-test/playwright.config.ts index 62c5395c65..d55b8cefdc 100644 --- a/packages/insomnia-smoke-test/playwright.config.ts +++ b/packages/insomnia-smoke-test/playwright.config.ts @@ -1,5 +1,5 @@ /* eslint-disable filenames/match-exported */ -import { PlaywrightTestConfig } from '@playwright/test'; +import type { PlaywrightTestConfig } from '@playwright/test'; const config: PlaywrightTestConfig = { projects: [ { @@ -35,7 +35,7 @@ const config: PlaywrightTestConfig = { sources: true, }, }, - reporter: process.env.CI ? 'github' : 'list', + reporter: process.env.CI ? [['html'], ['line']] : [['list']], timeout: process.env.CI ? 60 * 1000 : 20 * 1000, forbidOnly: !!process.env.CI, outputDir: 'traces',