Skip to content

Commit e2cd2cb

Browse files
committed
ci: bump ansible-lint to v25; provide collection requirements for ansible-lint
There is a new version of ansible-lint - v25. Newer versions of ansible-lint require the collection requirements to be installed so it can find the modules/plugins. Enhance our ansible-lint ci job to provide the collection requirements, including merging the runtime meta/collection-requirements.yml with the testing tests/collection-requirements.yml. This should somewhat mitigate the loss of ansible-plugin-scan. We have to remove mock_modules that are actually present now. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
1 parent fdb0948 commit e2cd2cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
set -euxo pipefail
4141
TOXENV=collection lsr_ci_runtox
4242
coll_dir=".tox/ansible_collections/$LSR_ROLE2COLL_NAMESPACE/$LSR_ROLE2COLL_NAME"
43+
# cleanup after collection conversion
44+
rm -rf "$coll_dir/.ansible" .tox/ansible-plugin-scan
4345
# ansible-lint action requires a .git directory???
4446
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45
4547
mkdir -p "$coll_dir/.git"

0 commit comments

Comments
 (0)