You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/app/reference/test-runners/playwright/github-actions/page.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: GitHub actions
4
4
5
5
Playwright tests can be configured via `playwright.config.ts` and the [command line](https://playwright.dev/docs/test-cli).
6
6
7
-
In real world scenarios, the `playwright.config.ts` has the defualt setup and is extended by the command line options in either the terminal, `package.json` or github action.
7
+
In real world scenarios, the `playwright.config.ts` has the default setup and is extended by the command line options in either the terminal, `package.json` or github action.
8
8
9
9
## Simple setup
10
10
@@ -46,16 +46,19 @@ jobs:
46
46
steps:
47
47
- name: Checkout
48
48
uses: actions/checkout@v4
49
+
# If you're using Yarn or PNPM, use the appropriate install command here
49
50
- name: Install dependencies
50
51
run: npm ci
51
52
- name: Install Replay Chromium
52
53
run: npx replayio install
53
54
- name: Run Playwright tests
54
-
run: npx playwright test
55
+
run: npx playwright test --project replay-chromium
55
56
env:
56
57
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}
57
58
```
58
59
60
+
Finally, add the workspace API key you were given to the Github repo settings as `REPLAY_API_KEY`, so that the CI job uploads to the right workspace.
61
+
59
62
## Advanced setup
60
63
61
64
In most setups, you'll want to to have additional control. In these cases, it's common to want to split up the test run and upload steps.
0 commit comments