mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(ci/playwright): set up pnpm
This commit is contained in:
parent
83385a20bc
commit
965d64f56c
15
.github/workflows/playwright.yml
vendored
15
.github/workflows/playwright.yml
vendored
@ -19,23 +19,20 @@ jobs:
|
|||||||
filter: tree:0
|
filter: tree:0
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# This enables task distribution via Nx Cloud
|
# This enables task distribution via Nx Cloud
|
||||||
# Run this command as early as possible, before dependencies are installed
|
# Run this command as early as possible, before dependencies are installed
|
||||||
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
|
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
|
||||||
# Connect your workspace by running "nx connect" and uncomment this line to enable task distribution
|
# Connect your workspace by running "nx connect" and uncomment this line to enable task distribution
|
||||||
# - run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e-ci"
|
# - run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e-ci"
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
# Cache node_modules
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 22
|
||||||
cache: 'npm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- run: npm ci --legacy-peer-deps
|
- name: Install dependencies
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
- run: npx playwright install --with-deps
|
- run: npx playwright install --with-deps
|
||||||
- uses: nrwl/nx-set-shas@v4
|
- uses: nrwl/nx-set-shas@v4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user