Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use supported ansible-lint action; run ansible-lint against the collection #157

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

richm
Copy link
Contributor

@richm richm commented Jan 6, 2024

The old ansible-community ansible-lint is deprecated. There is a
new ansible-lint github action.

The latest Ansible repo gating tests run ansible-lint against
the collection format instead of against individual roles.
We have to convert the role to collection format before running
ansible-test.

This also requires tox-lsr 3.2.1 - bump other actions to use 3.2.1

Role developers can run this locally using
tox -e collection,ansible-lint-collection
See linux-system-roles/tox-lsr#125

Signed-off-by: Rich Megginson [email protected]

@richm richm requested a review from ptoscano as a code owner January 6, 2024 01:49
…ollection

The old ansible-community ansible-lint is deprecated.  There is a
new ansible-lint github action.

The latest Ansible repo gating tests run ansible-lint against
the collection format instead of against individual roles.
We have to convert the role to collection format before running
ansible-test.

This also requires tox-lsr 3.2.1 - bump other actions to use 3.2.1

Role developers can run this locally using
`tox -e collection,ansible-lint-collection`
See linux-system-roles/tox-lsr#125

Signed-off-by: Rich Megginson <[email protected]>
@richm richm force-pushed the new-ansible-lint-collection branch from 90e84e3 to fba1cb3 Compare January 6, 2024 18:34
@ptoscano ptoscano merged commit 1d2db1f into main Jan 8, 2024
8 checks passed
@ptoscano ptoscano deleted the new-ansible-lint-collection branch January 8, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants