ci: isolate temporary test databases from runner overlay I/O
Build and publish container images / images (push) Successful in 10m42s

This commit is contained in:
Anya Tokugawa committed 2026-11-08 06:08:09 +09:00
1 parent 131a7ca01f
commit 61ecd1ffbd
2 files changed
+18 -1

No files matched your search

+4 -1
View File
@@ -14,7 +14,10 @@ FROM source AS test
# Test packages create independent SQLite stores. Serialize packages to avoid
# concurrent server/store initialization exhausting the shared runner's I/O.
# Keep production database deadlines and the complete test suite unchanged.
RUN go test -p 1 ./...
# Temporary test databases use bounded RAM-backed storage rather than the
# runner's overlay filesystem. Compiler temporary files remain on disk.
RUN --mount=type=tmpfs,target=/test-tmp,size=2147483648 \
TMPDIR=/test-tmp GOTMPDIR=/tmp go test -p 1 ./...
FROM source AS runtime
RUN go build -o /pageswiki ./cmd/pageswiki