Skip to content

add ansible-lint to CI #21

add ansible-lint to CI

add ansible-lint to CI #21

Workflow file for this run

# .github/workflows/ansible-lint.yml
name: ansible-lint
on:
pull_request:
branches: ["master"]
push:
jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ansible-galaxy dependencies
run: ansible-galaxy install -r requirements.yml
- name: Run ansible-lint
uses: ansible/[email protected] # or version tag instead of 'main'
- name: List modules
run: ansible-galaxy collection list