Ansible lint #628
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: ansible-lint | |
run-name: Ansible lint | |
on: | |
pull_request: | |
paths: | |
- 'ansible/**' | |
- .github/workflows/ansible-lint.yml | |
push: | |
paths: | |
- 'ansible/**' | |
- .github/workflows/ansible-lint.yml | |
branches: [ master ] | |
workflow_dispatch: | |
env: | |
DIRECTORY: ansible | |
jobs: | |
ansible-lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.DIRECTORY }} | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: make deps | |
- name: Install collections | |
run: make collections | |
- name: Run Ansible lint | |
run: make lint |