Skip to content

Commit

Permalink
chore: smoketests ubuntu only (Kong#6255)
Browse files Browse the repository at this point in the history
* chore: smoketests ubuntu only

* rename screenshot to traces

---------

Co-authored-by: jackkav <[email protected]>
  • Loading branch information
filfreire and jackkav committed Nov 24, 2023
1 parent 051c213 commit f3364c2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
**/dist
**/.git
**/.github
screenshots
traces
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea/
.github/
docker/
screenshots/
traces/
**/*.min.js
**/build/
**/dist/
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ graphql.config.json
.cache
.graphqlconfig
schema.graphql
packages/insomnia-smoke-test/screenshots
packages/insomnia-smoke-test/traces
*.tsbuildinfo
dist
.history
2 changes: 1 addition & 1 deletion packages/insomnia-smoke-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-smoke-test/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f3364c2

Please sign in to comment.