Fix CI workflow: configure markdownlint, fix Node version, add Ansible validation
Some checks failed
CI / lint-and-test (push) Successful in 59s
CI / ansible-validation (push) Has been cancelled

This commit is contained in:
ilia 2025-12-13 23:13:40 -05:00
parent f3b34f3c95
commit 990f886f02
2 changed files with 15 additions and 12 deletions

View File

@ -24,22 +24,25 @@ jobs:
run: npm run test:links
continue-on-error: true
build-and-test:
ansible-validation:
runs-on: self-hosted
container:
image: node:20-bullseye
image: python:3.11-slim
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Install Ansible and linting tools
run: |
pip install --no-cache-dir ansible ansible-lint yamllint
- name: Lint
run: npm run lint
- name: Validate YAML syntax
run: |
echo "Checking YAML syntax..."
find . -name "*.yml" -o -name "*.yaml" | grep -v ".git" | while read file; do
python3 -c "import yaml; yaml.safe_load(open('$file'))" || exit 1
done
- name: Test
run: npm test
- name: Check formatting
run: npm run lint
- name: Run ansible-lint
run: ansible-lint
continue-on-error: true

View File

@ -15,7 +15,7 @@
"markdownlint-cli2": "^0.18.1"
},
"engines": {
"node": ">=22.0.0",
"node": ">=20.0.0",
"npm": ">=10.0.0"
},
"keywords": [