democratech / 2022

4 stars 2 forks source link

Add ansible-lint GitHub Action (#6). #54

Closed jerome-caucat closed 3 years ago

jerome-caucat commented 3 years ago

@JMLX42 This adds a pre-commit hook and a GitHub Action running ansible-lint.

If I understand correctly merging can be protected against PR that do not pass linting by enabling the option Require status checks to pass before merging and the ansible-lint status check in the repository settings -> Branches -> Protect matching branches (the ansible-lint status check should appear in the list once this PR is merged).

I had to add two new ignored errors in the .ansible-lint skip_list:

Note that: