workflow: lint, prefix 'ansible-'

This commit is contained in:
Josh Lay 2025-10-19 14:12:53 -05:00
parent 80d57bcb32
commit 9c5dc4e46f
Signed by: jlay
SSH key fingerprint: SHA256:RwEMoWwXniQX1sqHfSD+3z+LKU/TOkv3i1qsy75vfec

View file

@ -1,41 +0,0 @@
---
name: 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:
test:
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.14t'
cache: 'pip'
env:
FORCE_COLOR: '1'
- run: pip install -r requirements.txt
env:
FORCE_COLOR: '1'
- name: cache '.ansible/collections'
id: cache-collections
uses: actions/cache@v4
with:
path: /home/runner/.ansible
key: zfs_dkms-runner-dot-ansible
- run: ansible-lint
env:
ANSIBLE_FORCE_COLOR: '1'