Skip to content

feat(ci-nestjs): env input, and services plus migrate for the contract job - #37

Merged
Ziadstr merged 1 commit into
mainfrom
feat/ci-nestjs-env
Oct 15, 2026
Merged

Ziadstr merged 1 commit into
mainfrom
feat/ci-nestjs-env

Conversation

@Ziadstr

@Ziadstr Ziadstr commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Adds an env input to ci-nestjs.yml: non-secret KEY=value lines exported to the build, test, e2e and contract jobs. The service URLs are written after it, so DATABASE_URL and REDIS_URL always come from the services. Preflight rejects malformed lines and names the workflow sets itself.

The contract job now starts the same database and Redis services as the test job and runs migrate-script first, so a contract check that boots the application can run. Callers without a database are unchanged.

  • Preflight validation is identical in ci-nestjs, ci-nextjs and ci-prisma (the latter two pass an empty value).
  • Selftest: the nestjs pass fixture passes env and fails if it does not reach test, e2e and contract; script tests cover malformed lines, reserved names and values containing =.
  • docs/ci-v1.md updated.

Additive, released as v1.2.0.

@Ziadstr
Ziadstr requested a review from a team as a code owner October 15, 2026 13:26
@Ziadstr
Ziadstr merged commit efee4ef into main Oct 15, 2026
134 of 170 checks passed
@Ziadstr
Ziadstr deleted the feat/ci-nestjs-env branch October 15, 2026 13: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