Skip to content

ci: gate all branches, bound job runtime, drop stale-restore cache - #132

Merged
EmeditWeb merged 1 commit into
mainfrom
ci/api-gate-all-branches-timeout-safe-cache
Sep 11, 2026
Merged

EmeditWeb merged 1 commit into
mainfrom
ci/api-gate-all-branches-timeout-safe-cache

Conversation

@EmeditWeb

Copy link
Copy Markdown
Member

No description provided.

Harden the API pipeline without changing what passes/fails:

- Trigger on push and pull_request for all branches ("**") instead of
  only `main`, so feature branches are verified before they reach a PR.
- Add `timeout-minutes: 15` to the build-test job. Previously an unset
  timeout let a hung build or test run to GitHub's 6-hour default,
  silently burning Actions minutes.
- Remove the explicit `node_modules` cache step. `npm ci` wipes
  node_modules before installing, so caching the folder is largely
  wasted, and its `restore-keys: node-modules-` fallback could restore
  a node_modules built from a different lockfile. `setup-node`'s
  `cache: 'npm'` already caches the npm download cache correctly for
  reproducible `npm ci` installs.

Build (`nest build`) and test (`jest`, 40 spec files) steps are
unchanged.
@EmeditWeb
EmeditWeb merged commit 9211210 into main Sep 11, 2026
2 checks passed
@EmeditWeb
EmeditWeb deleted the ci/api-gate-all-branches-timeout-safe-cache branch September 29, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant