Add CI tests to ensure valid .containers #26

Open
opened 2025-02-13 04:56:36 +00:00 by it-a-me · 2 comments
it-a-me commented 2025-02-13 04:56:36 +00:00 (Migrated from github.com)

It looks like you can test individual directories of quadlets with the QUADLET_UNIT_DIRS environment variable. For example

mkdir out && QUADLET_UNIT_DIRS="$(pwd)" /lib/systemd/user-generators/podman-user-generator ./out

generates service files in ./out from all quadlets files in the current directory. It exits with a nonzero exit code if the .quadlet is invalid

It looks like you can test individual directories of quadlets with the QUADLET_UNIT_DIRS environment variable. For example ``` mkdir out && QUADLET_UNIT_DIRS="$(pwd)" /lib/systemd/user-generators/podman-user-generator ./out ``` generates service files in ./out from all quadlets files in the current directory. It exits with a nonzero exit code if the .quadlet is invalid
redbeardymcgee commented 2025-02-14 22:43:08 +00:00 (Migrated from github.com)

I haven't had enough time to explore CI, but I like this idea a lot.

I haven't had enough time to explore CI, but I like this idea a lot.
redbeardymcgee commented 2025-03-23 14:57:51 +00:00 (Migrated from github.com)

I've finally found time to start learning this in a new branch. Thanks again for the suggestion.

I've finally found time to start learning this in a new branch. Thanks again for the suggestion.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: redbeardymcgee/podbox#26
No description provided.