Skip to content

Commit

Permalink
Fix Playwright Test Github action
Browse files Browse the repository at this point in the history
Fixes #1878

Update Playwright test configuration to pass in GitHub action.

* **package.json**
  - Add a new script `test:ci` to run Playwright tests with `--reporter=dot`.

* **.github/workflows/playwright-tests.yml**
  - Update the `Run Playwright tests` step to use `pnpm run test:ci`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/syntaxfm/website/issues/1878?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
stolinski committed Nov 1, 2024
1 parent f351abe commit bf65b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
run: pnpx playwright install --with-deps

- name: Run Playwright tests
run: pnpm run test
run: pnpm run test:ci
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"db:seed": "prisma db seed",
"i-changed-the-schema": "pnpm run db:push && pnpm run db:generate",
"postinstall": "pnpm db:generate && pnpm exec playwright install",
"stylelint": "NODE_OPTIONS=--no-deprecation stylelint \"**/*.css\""
"stylelint": "NODE_OPTIONS=--no-deprecation stylelint \"**/*.css\"",
"test:ci": "svelte-kit sync && playwright test --reporter=dot"
},
"devDependencies": {
"@codecov/sveltekit-plugin": "0.0.1-beta.12",
Expand Down

0 comments on commit bf65b76

Please sign in to comment.