Skip to content

Commit

Permalink
Use ansible-lint in CI instead of pre-commit actions
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0d committed Apr 17, 2024
1 parent 5204daf commit aefafe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ jobs:

- name: Install collection dependencies
run: ansible-galaxy collection install -r ${{ github.run_id }}.yml
- uses: pre-commit/[email protected]

- uses: ansible/ansible-lint@v24
with:
working_directory: .
args: --config=.ansible-lint.yml
...
13 changes: 0 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,4 @@ repos:
hooks:
- id: gitleaks
stages: [manual, push]
- repo: 'https://github.com/ansible-community/ansible-lint.git'
rev: v24.2.0
hooks:
- id: ansible-lint
pass_filenames: false
always_run: true
entry: "ansible-lint"
args:
- "--profile=production"
- "-c=.ansible-lint.yml"
additional_dependencies:
- "ansible-core>=2.14"
- "yamllint>=1.29,<2.0"
...

0 comments on commit aefafe8

Please sign in to comment.