Add yamllint, ansible-lint, and a syntax check
scripts/check.sh runs all three and CI calls the same script. ansible.cfg keeps Ansible's temp and Galaxy caches inside the checkout so the checks work when $HOME is read-only.
This commit is contained in:
1 parent
fc70acb66b
commit
0df4054cc2
8 files changed
+166
No files matched your search
@@ -0,0 +1,18 @@
|
||||
name: check
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install linters
|
||||
run: pip install ansible-core ansible-lint yamllint
|
||||
- name: Run checks
|
||||
run: ./scripts/check.sh
|
||||
Reference in new issue
Block a user