Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit d3c2315

Browse files
committed
chore(cI): use pnpm exec instead of pnpx
1 parent 0f9fe03 commit d3c2315

3 files changed

Lines changed: 53 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
13+
jobs:
14+
main:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
filter: tree:0
20+
fetch-depth: 0
21+
22+
23+
- uses: pnpm/action-setup@v4
24+
name: Install pnpm
25+
with:
26+
run_install: false
27+
28+
# This enables task distribution via Nx Cloud
29+
# Run this command as early as possible, before dependencies are installed
30+
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
31+
# Connect your workspace by running "nx connect" and uncomment this line to enable task distribution
32+
# - run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e-ci"
33+
34+
35+
# Cache node_modules
36+
- uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
cache: 'pnpm'
40+
41+
- run: pnpm install --frozen-lockfile
42+
- run: pnpm exec playwright install --with-deps
43+
- uses: nrwl/nx-set-shas@v4
44+
45+
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
46+
# - run: pnpm exec nx-cloud record -- echo Hello World
47+
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
48+
# When you enable task distribution, run the e2e-ci task instead of e2e
49+
- run: pnpm exec nx affected -t lint test build e2e

.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: pnpx playwright install --with-deps
56+
run: pnpm exec 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 pnpx nx run server-e2e:e2e
85+
run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 pnpm exec nx run server-e2e: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: pnpx playwright install --with-deps
36+
- run: pnpm exec 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: pnpx nx affected -t e2e
43+
- run: pnpm exec nx affected -t e2e

0 commit comments

Comments
 (0)