ci(molecule): select no scenario for a galaxy.yml change, guarded by a load check
Scenarios load mortis.kamino from the checkout, not the copy molecule installs from galaxy.yml, so galaxy.yml goes on the selector's IGNORED list. A new check, run by run_molecule_in_ci_image.sh before the scenarios, fails the run when the environment molecule gives ansible-playbook would resolve the collection anywhere else. Closes #355 Assisted-by: Claude Code
This commit is contained in:
1 parent
fcd331be06
commit
03b21a9aef
7 files changed
+274
-5
No files matched your search
@@ -17,7 +17,7 @@ Only a pull request is narrowed, and only when <base-ref> is given and EVENT_NAM
|
||||
only (the image-smoke scenarios test the images, not the roles); a shared file such as
|
||||
extensions/molecule/requirements.yml is "any other file";
|
||||
* a file on the IGNORED list (documentation, changelog, repository tooling that no
|
||||
scenario reads) selects nothing;
|
||||
scenario reads; galaxy.yml by a rule in .gitea/workflows/AGENTS.md) selects nothing;
|
||||
* any other file selects every scenario.
|
||||
|
||||
A role uses another when any file under its directory names it as `mortis.kamino.<other>`
|
||||
@@ -62,6 +62,7 @@ IGNORED = (
|
||||
"changelogs/*",
|
||||
"LICENSES/*",
|
||||
"README.md",
|
||||
"galaxy.yml",
|
||||
"CONTRIBUTING.md",
|
||||
"SECURITY.md",
|
||||
"GLOSSARY.md",
|
||||
|
||||
Reference in new issue
Block a user