Keep container verification focused on runtime behavior
This commit is contained in:
1 parent
0533f09f16
commit
55f3ae0b73
3 files changed
+5
-5
No files matched your search
@@ -25,7 +25,7 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
- name: Build and run offline checks
|
- name: Build container
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
+1
-3
@@ -1,12 +1,10 @@
|
|||||||
FROM node:22-bookworm-slim AS build
|
FROM node:22-bookworm-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV CI=true WRANGLER_SEND_METRICS=false GOMEMLIMIT=2GiB GOMAXPROCS=2
|
ENV CI=true WRANGLER_SEND_METRICS=false GOMEMLIMIT=2GiB GOMAXPROCS=2
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends git \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run check && npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:22-bookworm-slim AS runtime
|
FROM node:22-bookworm-slim AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
+3
-1
@@ -9,7 +9,9 @@ runtime prototype does not change public release or rules-mode gates.
|
|||||||
## Checkpoint images
|
## Checkpoint images
|
||||||
|
|
||||||
Every push to `main` starts `.github/workflows/container.yml`. The Docker build
|
Every push to `main` starts `.github/workflows/container.yml`. The Docker build
|
||||||
runs types, lint, offline tests and the production build using the lockfile.
|
runs the production build using the lockfile. Types, lint and offline tests
|
||||||
|
remain part of source checkpoint verification rather than being repeated in
|
||||||
|
the container build.
|
||||||
Before publishing, CI creates an isolated container and volume, checks accepted
|
Before publishing, CI creates an isolated container and volume, checks accepted
|
||||||
and rejected HTTP origins, verifies saved-seat restoration through restart and
|
and rejected HTTP origins, verifies saved-seat restoration through restart and
|
||||||
container replacement, then runs the HTTP integration suite.
|
container replacement, then runs the HTTP integration suite.
|
||||||
|
|||||||
Reference in new issue
Block a user