@@ -34,25 +34,30 @@ jobs:
3434 - name : Checkout repository
3535 uses : actions/checkout@v4
3636
37+ - name : Install pnpm
38+ uses : pnpm/action-setup@v4
39+ with :
40+ run_install : false
41+
3742 - name : Setup Node.js
3843 uses : actions/setup-node@v4
3944 with :
4045 node-version-file : " .nvmrc"
41- cache : " npm "
46+ cache : " pnpm "
4247
4348 - name : Install dependencies
44- run : npm ci
49+ run : pnpm install --frozen-lockfile
4550
4651 - name : Lint code (xo), markdown (markdownlint), and package (publint)
47- run : npm run lint
52+ run : pnpm run lint
4853
4954 - name : Check code style
50- run : npx --no prettier . --check
55+ run : pnpm exec prettier . --check
5156
5257 - name : Check spelling
5358 uses : codespell-project/actions-codespell@v2
5459 with :
55- skip : " *. lock,*.json ,coverage,node_modules,dist,_site,.git"
60+ skip : " pnpm- lock.yaml ,coverage,node_modules,dist,_site,.git"
5661 ignore_words_list : " moz,webkit"
5762 check_filenames : true
5863
@@ -70,17 +75,22 @@ jobs:
7075 with :
7176 fetch-depth : 0 # Needed for quality analysis
7277
78+ - name : Install pnpm
79+ uses : pnpm/action-setup@v4
80+ with :
81+ run_install : false
82+
7383 - name : Setup Node.js
7484 uses : actions/setup-node@v4
7585 with :
7686 node-version-file : " .nvmrc"
77- cache : " npm "
87+ cache : " pnpm "
7888
7989 - name : Install dependencies
80- run : npm ci
90+ run : pnpm install --frozen-lockfile
8191
8292 - name : Run tests with coverage
83- run : npm run test:vitest --workspaces -- --coverage --coverage.reporter lcov --coverage.reporter json
93+ run : pnpm run --recursive test:vitest --coverage --coverage.reporter lcov --coverage.reporter json
8494
8595 - name : Upload coverage reports
8696 uses : actions/upload-artifact@v4
@@ -102,7 +112,7 @@ jobs:
102112 packages : read
103113
104114 audit-fix :
105- name : Suggest npm audit fix for Dependabot PRs
115+ name : Suggest pnpm audit -- fix for Dependabot PRs
106116 uses : ./.github/workflows/audit-fix-pr.yml
107117 secrets : inherit
108118 permissions :
0 commit comments