ci: build the container image on every pull request #48

Stängd
öppnade 2026-09-29 15:21:50 +00:00 av supernaut · 0 kommentarer
Ägare

CI never builds the container image. ci.yml runs lint, tests and pnpm build, but not the Containerfile. A broken image build only shows up when a v* tag is pushed and release.yml runs.

That happened with v0.1.1. The build stage did not copy pnpm-workspace.yaml, so pnpm install failed with ERR_PNPM_IGNORED_BUILDS on lefthook's postinstall. Every PR was green. The tag was left with no image, and the fix (#47) had to ship as v0.1.2.

Task

Add a step to ci.yml that builds the image from the Containerfile on every pull request, without pushing it. Use the same build command release.yml uses, so the two cannot drift.

Done when

  • A PR that breaks the Containerfile fails CI.
  • Checked with a negative control: revert the #47 fix on a throwaway branch and confirm CI goes red.
CI never builds the container image. `ci.yml` runs lint, tests and `pnpm build`, but not the `Containerfile`. A broken image build only shows up when a `v*` tag is pushed and `release.yml` runs. That happened with `v0.1.1`. The build stage did not copy `pnpm-workspace.yaml`, so `pnpm install` failed with `ERR_PNPM_IGNORED_BUILDS` on lefthook's postinstall. Every PR was green. The tag was left with no image, and the fix (#47) had to ship as `v0.1.2`. ## Task Add a step to `ci.yml` that builds the image from the `Containerfile` on every pull request, without pushing it. Use the same build command `release.yml` uses, so the two cannot drift. ## Done when - A PR that breaks the `Containerfile` fails CI. - Checked with a negative control: revert the #47 fix on a throwaway branch and confirm CI goes red.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-reconcile-trigger#48
Ingen beskrivning angiven.