Files
computer-playbook/.github/workflows/lint-makefile.yml
T
kevinveenbirkenbachandClaude Opus 4.7 9d7a1dce1e ci(workflows): pin lint-{ansible,javascript,makefile} to host runner
These three workflows install only their own toolchain (ansible-core +
ansible-lint, ESLint via npm, mbake) and then call `make lint-<type>`.
The make target has `install-lint` as a prereq which dispatches on
INFINITO_LINT_RUNNER (default `docker` from env/default.env), tries
`make up`, imports `cli.administration.deploy.development`, and crashes
because ruamel.yaml / the full Python toolchain isn't installed on the
runner.

Set `INFINITO_LINT_RUNNER: host` as job env so install-lint stays on
the host (delegates to `python3 -m utils.install.lint`) and the lint
wrappers exec the per-type scripts directly. lint-ansible passed by
accident last run but had the same bug -- fixed preventively.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 23:25:38 +02:00

33 lines
619 B
YAML

name: "🔍 Lint: Makefile"
on:
workflow_call:
permissions:
contents: read
jobs:
lint-makefile:
name: 🧹 Lint Makefile
runs-on: ubuntu-latest
timeout-minutes: 5
env:
INFINITO_LINT_RUNNER: host
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install mbake
run: |
python -m pip install --upgrade pip
pip install mbake
- name: Run mbake format --check via make
run: make lint-makefile