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 run: npm run test:links
continue-on-error: true continue-on-error: true
build-and-test: ansible-validation:
runs-on: self-hosted runs-on: self-hosted
container: container:
image: node:20-bullseye image: python:3.11-slim
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - name: Install Ansible and linting tools
run: npm ci run: |
pip install --no-cache-dir ansible ansible-lint yamllint
- name: Lint - name: Validate YAML syntax
run: npm run lint 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 - name: Run ansible-lint
run: npm test run: ansible-lint
continue-on-error: true
- name: Check formatting
run: npm run lint

View File

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