Add ansible-lint #48
Workflow file for this run
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: Lints | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
Yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run YAML Lint | |
run: yamllint --strict --format github . | |
AnsibleLint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install Ansible-lint | |
run: pip3 install ansible-lint | |
- name: Run Ansible-lint | |
run: ansible-lint *.yml |