ci: optimize workflow execution #9

Merged
jesse merged 1 commit from ci/optimize-workflows into master 2026-05-28 03:23:13 +02:00
Owner

Summary

  • Shallow clones (fetch-depth: 1) across all CI jobs; base SHA fetched on demand only when nx affected needs it.
  • node_modules cached per-job via Forgejo Actions cache; npm ci now runs only on cache miss.
  • Replaces the broken NX_BASE=HEAD~1 fallback with nx run-many when the PR base SHA isn't reachable — correctness over speed when the diff base is unknown.
  • Adds explicit fetch-depth: 1 to .github/workflows/publish.yml checkout for consistency.

Test plan

  • lint, test, build, e2e jobs pass on this branch
  • Verify cache hit/miss behavior on subsequent pushes
  • Confirm nx affected still resolves correctly when base SHA is fetchable
## Summary - Shallow clones (`fetch-depth: 1`) across all CI jobs; base SHA fetched on demand only when `nx affected` needs it. - `node_modules` cached per-job via Forgejo Actions cache; `npm ci` now runs only on cache miss. - Replaces the broken `NX_BASE=HEAD~1` fallback with `nx run-many` when the PR base SHA isn't reachable — correctness over speed when the diff base is unknown. - Adds explicit `fetch-depth: 1` to `.github/workflows/publish.yml` checkout for consistency. ## Test plan - [x] lint, test, build, e2e jobs pass on this branch - [ ] Verify cache hit/miss behavior on subsequent pushes - [ ] Confirm `nx affected` still resolves correctly when base SHA is fetchable
ci: optimize workflow execution
All checks were successful
CI / changes (pull_request) Successful in 8s
CI / test (pull_request) Successful in 14m14s
CI / build (pull_request) Successful in 15m10s
CI / lint (pull_request) Successful in 15m19s
CI / e2e (pull_request) Successful in 20m36s
9844cfdc70
jesse merged commit 39722b4911 into master 2026-05-28 03:23:13 +02:00
jesse deleted branch ci/optimize-workflows 2026-05-28 03:23:13 +02:00
jesse referenced this pull request from a commit 2026-05-28 03:23:15 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jesse/mindnest!9
No description provided.