chore: smoketests ubuntu only (#6255)

* chore: smoketests ubuntu only

* rename screenshot to traces

---------

Co-authored-by: jackkav <jackkav@gmail.com>
This commit is contained in:
Filipe Freire 2023-08-10 16:53:18 +01:00 committed by GitHub
parent bfa55f22c4
commit 7b3d04c830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 10 deletions

View File

@ -3,4 +3,4 @@
**/dist
**/.git
**/.github
screenshots
traces

View File

@ -1,7 +1,7 @@
.idea/
.github/
docker/
screenshots/
traces/
**/*.min.js
**/build/
**/dist/

View File

@ -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

2
.gitignore vendored
View File

@ -29,7 +29,7 @@ graphql.config.json
.cache
.graphqlconfig
schema.graphql
packages/insomnia-smoke-test/screenshots
packages/insomnia-smoke-test/traces
*.tsbuildinfo
dist
.history

View File

@ -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/).

View File

@ -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,