You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/.github/workflows/lint.yml

28 lines
526 B
YAML

---
name: Lint
on:
workflow_dispatch:
push:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
directory:
- roles
- playbooks
- group_vars
- host_vars
steps:
- name: Checkout the codebase
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8.9
- name: Install dependencies
run: make deps
- name: Test Directory
run: ansible-lint ${{ matrix.directory }}