zfs_dkms/.github/workflows/ansible-lint.yml
Josh Lay 51f514b184
All checks were successful
ansible-lint / ansible-lint (push) Successful in 24s
workflow/pip: drop force_color on quiet install
2025-10-19 15:13:18 -05:00

39 lines
1 KiB
YAML

---
name: ansible-lint
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- master
paths:
- '**/*.yml'
schedule:
- cron: "0 0 * * 0" # weekly, test against potentially-new ansible
jobs:
ansible-lint:
runs-on: ubuntu-24.04 # actually 'ghcr.io/catthehacker/ubuntu:runner-24.04', tagged on runner
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.13' # 3.14 requires ansible 2.20+, RC currently
cache: 'pip'
env:
FORCE_COLOR: '1'
- run: pip install --quiet --no-compile --requirement .github/workflows/requirements.txt
- name: cache '.ansible'
id: cache-collections
uses: actions/cache@v4
with:
path: /home/runner/.ansible
key: zfs_dkms-runner-dot-ansible
- run: ansible-lint # no '--offline' implies 'ansible-galaxy collection install -r requirements.yml'
env:
ANSIBLE_FORCE_COLOR: '1'