fix(ci): Exclude ansible-compat's new cache location

ansible-compat 25.0.0 now stores its cache in .ansible. Ignore this
location when running ansible-lint and in .gitignore.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2025-01-15 09:50:47 +01:00
parent a64d543575
commit cf64caee84
2 changed files with 4 additions and 1 deletions

View File

@@ -79,7 +79,9 @@ jobs:
- name: Run ansible-lint - name: Run ansible-lint
run: | run: |
ansible-lint --version ansible-lint --version
ansible-lint -v # Remove --exclude flag once ansible-lint was updated to ignore ansible-compat's new cache location
# See https://github.com/ansible/ansible-lint/issues/4477
ansible-lint -v --exclude .cache .ansible
working-directory: ${{ env.collection_dir }} working-directory: ${{ env.collection_dir }}
- name: Run shellcheck - name: Run shellcheck

1
.gitignore vendored
View File

@@ -43,6 +43,7 @@ htmlcov/
.nox/ .nox/
.coverage .coverage
.coverage.* .coverage.*
.ansible
.cache .cache
nosetests.xml nosetests.xml
coverage.xml coverage.xml