From 7b3d04c83073e92c23e1f1f5cf12d567eec726e5 Mon Sep 17 00:00:00 2001 From: Filipe Freire Date: Thu, 10 Aug 2023 16:53:18 +0100 Subject: [PATCH] chore: smoketests ubuntu only (#6255) * chore: smoketests ubuntu only * rename screenshot to traces --------- Co-authored-by: jackkav --- .dockerignore | 2 +- .eslintignore | 2 +- .github/workflows/test.yml | 11 ++++++----- .gitignore | 2 +- packages/insomnia-smoke-test/README.md | 2 +- packages/insomnia-smoke-test/playwright.config.ts | 2 +- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.dockerignore b/.dockerignore index f1a559143..857019537 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,4 +3,4 @@ **/dist **/.git **/.github -screenshots \ No newline at end of file +traces diff --git a/.eslintignore b/.eslintignore index dc833ee33..b30d70245 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,7 +1,7 @@ .idea/ .github/ docker/ -screenshots/ +traces/ **/*.min.js **/build/ **/dist/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fdd44e4d6..3de1ac40a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,12 +16,13 @@ concurrency: cancel-in-progress: true jobs: - OS: + Test: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-latest] + os: [ubuntu-latest] + # os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout branch uses: actions/checkout@v3 @@ -100,10 +101,10 @@ jobs: - name: Run Inso CLI smoke tests run: npm run test:smoke:cli - - name: Upload smoke test screenshots + - name: Upload smoke test traces uses: actions/upload-artifact@v3 if: always() with: if-no-files-found: ignore - name: ${{ matrix.os }}-smoke-test-screenshots-${{ github.run_number }} - path: packages/insomnia-smoke-test/screenshots + name: ${{ matrix.os }}-smoke-test-traces-${{ github.run_number }} + path: packages/insomnia-smoke-test/traces diff --git a/.gitignore b/.gitignore index a21abc31a..c3baeee78 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ graphql.config.json .cache .graphqlconfig schema.graphql -packages/insomnia-smoke-test/screenshots +packages/insomnia-smoke-test/traces *.tsbuildinfo dist .history diff --git a/packages/insomnia-smoke-test/README.md b/packages/insomnia-smoke-test/README.md index 6bc5f5486..41487810d 100644 --- a/packages/insomnia-smoke-test/README.md +++ b/packages/insomnia-smoke-test/README.md @@ -69,7 +69,7 @@ To open a local trace viewer for a given test output, run: ```shell # Example: -npx playwright show-trace packages/insomnia-smoke-test/screenshots/app-can-send-requests/trace.zip +npx playwright show-trace packages/insomnia-smoke-test/traces/app-can-send-requests/trace.zip ``` Alternatively you can upload this trace to [trace.playwright.dev](https://trace.playwright.dev/). diff --git a/packages/insomnia-smoke-test/playwright.config.ts b/packages/insomnia-smoke-test/playwright.config.ts index c2865914f..3b71cc096 100644 --- a/packages/insomnia-smoke-test/playwright.config.ts +++ b/packages/insomnia-smoke-test/playwright.config.ts @@ -31,7 +31,7 @@ const config: PlaywrightTestConfig = { reporter: process.env.CI ? 'github' : 'list', timeout: process.env.CI ? 60 * 1000 : 20 * 1000, forbidOnly: !!process.env.CI, - outputDir: 'screenshots', + outputDir: 'traces', testDir: 'tests', expect: { timeout: process.env.CI ? 25 * 1000 : 10 * 1000,