mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
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>
32 lines
606 B
YAML
32 lines
606 B
YAML
name: "🔍 Lint: JavaScript"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint-javascript:
|
|
name: 🧹 Lint JavaScript
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
env:
|
|
INFINITO_LINT_RUNNER: host
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "npm"
|
|
|
|
- name: Install ESLint dependencies
|
|
run: npm ci --no-fund --no-audit
|
|
|
|
- name: Run lint-javascript via make
|
|
run: make lint-javascript
|