Skip to content

Commit 9da059f

Browse files
committed
ci: use pnpm for desktop job
1 parent cb8f32f commit 9da059f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,25 +57,27 @@ jobs:
5757
desktop:
5858
name: Desktop (Tauri + React)
5959
runs-on: ubuntu-latest
60-
defaults:
61-
run:
62-
working-directory: desktop
6360
steps:
6461
- uses: actions/checkout@v4
6562
- name: Use Node.js
6663
uses: actions/setup-node@v4
6764
with:
6865
node-version: '20'
69-
cache: 'npm'
70-
cache-dependency-path: desktop/package-lock.json
66+
cache: 'pnpm'
67+
cache-dependency-path: pnpm-lock.yaml
68+
- name: Install pnpm
69+
uses: pnpm/action-setup@v4
70+
with:
71+
version: 10
72+
run_install: false
7173
- name: Install deps
72-
run: npm ci
74+
run: pnpm install --frozen-lockfile
7375
- name: Lint
74-
run: npm run lint
76+
run: pnpm --filter persona-desktop run lint
7577
- name: Tests
76-
run: npm test -- --ci --reporters=default --reporters=jest-junit
78+
run: pnpm --filter persona-desktop run test -- --ci --reporters=default --reporters=jest-junit
7779
- name: Security Audit
78-
run: npm audit --audit-level=moderate
80+
run: pnpm --filter persona-desktop audit --audit-level=moderate
7981
continue-on-error: true # Don't fail CI on moderate vulnerabilities
8082

8183
web:

0 commit comments

Comments
 (0)