This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments