Skip to content

Commit bc1197f

Browse files
committed
chore: use .bin/playwright and not turbo
1 parent a692cfb commit bc1197f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/lint-and-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
if: |
8989
(github.event_name == 'push' || github.event_name == 'merge_group') ||
9090
(github.event_name == 'pull_request' && github.event.pull_request.head.ref != 'chore/crowdin')
91-
run: pnpm turbo lint lint:types prettier
91+
run: node_modules/.bin/turbo lint lint:types prettier
9292

9393
- name: Save Lint Cache
9494
# We only want to save caches on `push` events or `pull_request_target` events

.github/workflows/playwright-cloudflare-open-next.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Get Playwright version
5555
id: playwright-version
5656
working-directory: apps/site
57-
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
57+
run: echo "version=$(node_modules/.bin/playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
5858

5959
- name: Cache Playwright browsers
6060
id: playwright-cache
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Install Playwright Browsers
6767
working-directory: apps/site
68-
run: npx playwright install --with-deps
68+
run: node_modules/.bin/playwright install --with-deps
6969

7070
- name: Run Playwright tests
7171
working-directory: apps/site

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Get Playwright version
8181
id: playwright-version
8282
working-directory: apps/site
83-
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
83+
run: echo "version=$(node_modules/.bin/playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
8484

8585
- name: Cache Playwright browsers
8686
id: playwright-cache
@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: Install Playwright Browsers
9393
working-directory: apps/site
94-
run: npx playwright install --with-deps
94+
run: node_modules/.bin/playwright install --with-deps
9595

9696
- name: Run Playwright tests
9797
working-directory: apps/site

apps/site/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getWebServerConfig(): Pick<Config, 'webServer'> {
4141
if (process.env.PLAYWRIGHT_RUN_CLOUDFLARE_PREVIEW) {
4242
return {
4343
webServer: {
44-
command: 'pnpm turbo run cloudflare:preview',
44+
command: 'node --run cloudflare:preview',
4545
url: process.env.PLAYWRIGHT_BASE_URL || 'http://127.0.0.1:3000',
4646
timeout: 60_000 * 3,
4747
},

0 commit comments

Comments
 (0)