Skip to content

Commit

Permalink
NEXT-33446 - move e2e job from admin sdk to root of repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Feb 8, 2024
1 parent 37d1976 commit cef1897
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 38 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,35 @@ jobs:

- name: madge
run: pnpm --filter @shopware-ag/meteor-admin-sdk run circular-dependencies

playwright-run:
name: Playwright Integration Tests
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: pnpm install

- name: Install Playwright
run: npx playwright install

- name: Run Playwright tests
run: pnpm run test:e2e

- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-test-results
path: playwright-report/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint:eslint": "turbo run lint:eslint",
"format": "turbo run format",
"format:check": "turbo run format:check",
"test:unit": "turbo run test:unit"
"test:unit": "turbo run test:unit",
"test:e2e": "turbo run test:e2e"
},
"keywords": [],
"license": "MIT",
Expand Down
32 changes: 0 additions & 32 deletions packages/admin-sdk/.github/workflows/tests.yml

This file was deleted.

8 changes: 4 additions & 4 deletions packages/admin-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
"lint:eslint": "eslint ./src --ext .ts",
"test:unit": "jest --collectCoverage",
"test:unit:watch": "jest --watch",
"e2e": "concurrently --handle-input --kill-others --success first \"npm run dev\" \"wait-on http://127.0.0.1:8181 && wait-on http://127.0.0.1:8182 && playwright test\"",
"e2e:dev": "playwright test --project=chromium --reporter=list",
"e2e:dev-watch": "chokidar \"{e2e,src}/**/*.{js,ts}\" -c 'clear && npm run e2e:dev' --initial",
"e2e:dev-debug": "PWDEBUG=1 npm run e2e:dev",
"test:e2e": "concurrently --handle-input --kill-others --success first \"npm run dev\" \"wait-on http://127.0.0.1:8181 && wait-on http://127.0.0.1:8182 && playwright test\"",
"test:e2e:dev": "playwright test --project=chromium --reporter=list",
"test:e2e:dev-watch": "chokidar \"{e2e,src}/**/*.{js,ts}\" -c 'clear && npm run e2e:dev' --initial",
"test:e2e:dev-debug": "PWDEBUG=1 npm run e2e:dev",
"prepublish": "npm run build",
"circular-dependencies": "madge --circular --warning src",
"circular-dependencies:image": "madge --circular --warning --image ./dependency-graph.png src"
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"lint:eslint": {},
"format": {},
"format:check": {},
"test:unit": {}
"test:unit": {},
"test:e2e": {}
}
}

0 comments on commit cef1897

Please sign in to comment.