Skip to content

Commit 517a06e

Browse files
committed
fix(ci): use proper command to run playwright
1 parent 14a1455 commit 517a06e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/main-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: pnpm install --frozen-lockfile
5454

5555
- name: Install Playwright Browsers
56-
run: npx playwright install --with-deps
56+
run: pnpx playwright install --with-deps
5757

5858
- name: Run the TypeScript build
5959
run: pnpm run server:build
@@ -82,7 +82,7 @@ jobs:
8282
require-healthy: true
8383

8484
- name: Run Playwright tests
85-
run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 npx playwright test
85+
run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 pnpx nx run -t e2e
8686
- uses: actions/upload-artifact@v4
8787
if: ${{ !cancelled() }}
8888
with:

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333

3434
- name: Install dependencies
3535
run: pnpm install --frozen-lockfile
36-
- run: npx playwright install --with-deps
36+
- run: pnpx playwright install --with-deps
3737
- uses: nrwl/nx-set-shas@v4
3838

3939
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
4040
# - run: npx nx-cloud record -- echo Hello World
4141
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
4242
# When you enable task distribution, run the e2e-ci task instead of e2e
43-
- run: npx nx affected -t e2e
43+
- run: pnpx nx affected -t e2e

0 commit comments

Comments
 (0)