Watch
1
0
Fork
You've already forked buildah-build
1
mirror of https://github.com/redhat-actions/buildah-build.git synced 2026-11-16 19:40:57 +00:00
buildah-build/vitest.config.ts
Christopher Brown 6c3509dc57
Detect container storage root instead of hardcoding it (#174) (#175)
The buildah-image container mode hardcoded /var/lib/containers/storage
as the volume mount path. This is the rootful storage location and
fails with "permission denied" when the runner operates as a non-root
user (rootless podman stores data elsewhere).

Query `podman info --format '{{.Store.GraphRoot}}'` at runtime to
discover the actual storage root. Falls back to the previous hardcoded
path with a warning if detection fails.

Also adds vitest and unit tests for the container mode logic, and a
test job in CI.

Closes #174

Co-authored-by: Claude Opus 4.6 <[email protected]>
2026-07-24 13:00:55 +01:00

7 lines
139 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["src/**/*.test.ts"],
},
});