test #64
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
# .github/workflows/ansible-lint.yml | |
name: ansible-lint | |
on: | |
pull_request: | |
branches: ["main"] | |
push: | |
branches: ["main", "dev"] | |
jobs: | |
build: | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Specify the Python version | |
- name: Install Ansible and ansible-lint | |
run: | | |
python -m pip install --upgrade pip | |
pip install ansible ansible-lint | |
- name: Install Ansible collections | |
run: ansible-galaxy collection install -r requirements.yml | |
- name: Run ansible-lint | |
run: ansible-lint |