mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 06:12:27 +00:00
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:
parent
bfa55f22c4
commit
7b3d04c830
@ -3,4 +3,4 @@
|
||||
**/dist
|
||||
**/.git
|
||||
**/.github
|
||||
screenshots
|
||||
traces
|
||||
|
@ -1,7 +1,7 @@
|
||||
.idea/
|
||||
.github/
|
||||
docker/
|
||||
screenshots/
|
||||
traces/
|
||||
**/*.min.js
|
||||
**/build/
|
||||
**/dist/
|
||||
|
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -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
2
.gitignore
vendored
@ -29,7 +29,7 @@ graphql.config.json
|
||||
.cache
|
||||
.graphqlconfig
|
||||
schema.graphql
|
||||
packages/insomnia-smoke-test/screenshots
|
||||
packages/insomnia-smoke-test/traces
|
||||
*.tsbuildinfo
|
||||
dist
|
||||
.history
|
||||
|
@ -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/).
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user