fix(ci): post-runner-image cleanup
CI / check (pull_request) Failing after 8s
CI / scan (pull_request) Failing after 7m23s
CI / commits (pull_request) Successful in 13m50s
CI / a11y (pull_request) Successful in 13m47s
CI / perf (pull_request) Failing after 52m25s

Three follow-up fixes uncovered by the first end-to-end CI run on the
self-hosted act_runner image:

- Replace `nrwl/nx-set-shas@v4` with a manual shell step. The action
  queries the GitHub API to discover the last successful workflow run
  and returns 404 on Gitea. The replacement derives NX_BASE/NX_HEAD
  from local git history (merge-base with the target branch on
  pull_request, HEAD~1 on push to main).
- Pin the `perf` job to `catthehacker/ubuntu:full-22.04` so Lighthouse
  CI finds a real Chrome. The default act image (act-22.04) is the
  minimal variant and ships without browsers.
- Declare `pnpm.onlyBuiltDependencies` to silence the "Ignored build
  scripts" warning and approve only the packages whose post-install
  hooks we actually rely on (Nx, Prisma, esbuild, swc, native
  watchers/resolvers).
This commit is contained in:
Julien Gautier
2026-05-04 13:22:21 +02:00
parent 25093db0b9
commit 1117d7fb89
2 changed files with 38 additions and 1 deletions
+16
View File
@@ -16,6 +16,22 @@
"prettier --write"
]
},
"pnpm": {
"onlyBuiltDependencies": [
"@nestjs/core",
"@parcel/watcher",
"@prisma/client",
"@prisma/engines",
"@swc/core",
"esbuild",
"less",
"lmdb",
"msgpackr-extract",
"nx",
"prisma",
"unrs-resolver"
]
},
"devDependencies": {
"@analogjs/vite-plugin-angular": "~2.1.2",
"@analogjs/vitest-angular": "~2.1.2",