From 89f50489107f86df8070e442440d66a06f39e268 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Wed, 11 Nov 2026 12:50:58 +0100 Subject: [PATCH] CI: web-coverage installs with pnpm web/ has only pnpm-lock.yaml, so setup-node's npm cache step failed the job before any test ran. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/python-tests.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 9eaa66c..ff52fa1 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -49,13 +49,21 @@ jobs: steps: - uses: actions/checkout@v4 + # web/ is a pnpm project (no package-lock.json since the Astro move), so + # npm's cache step had no lockfile to key on and failed the job. No + # `version:`: pnpm/action-setup reads web/package.json's packageManager + # and errors if given both. + - uses: pnpm/action-setup@v4 + with: + package_json_file: web/package.json + - uses: actions/setup-node@v4 with: node-version: 26.13.0 - cache: npm - cache-dependency-path: web/package-lock.json + cache: pnpm + cache-dependency-path: web/pnpm-lock.yaml - name: vitest --coverage, 100% (web UI) run: | - npm --prefix web ci - npm --prefix web run coverage + pnpm --dir web install --frozen-lockfile + pnpm --dir web run coverage