Files
w0h1vandClaude Opus 5.5 10d4c3d1b4 feat: run a local maigret without Docker (MAIGRET_RUNNER) (#33)
Adds a local runner that calls a maigret binary on PATH with
--folderoutput, selected by MAIGRET_RUNNER=docker|local|auto (auto: local
if installed, else Docker). The Docker image now bundles maigret 0.6.6
with the pdf extra and sets MAIGRET_RUNNER=local, so it runs on hosted
platforms with no Docker daemon and PDF reports work.

Runner selection is in src/runner.ts with unit tests; CI runs them.
Input validation and execFile argument arrays are unchanged.

Closes #22

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:06:36 -06:00

51 lines
1.2 KiB
YAML

name: CI
on:
push:
branches-ignore: ["dependabot/**"] # Dependabot branches are tested via their PRs
paths-ignore: ["docs/**", "**/*.md"]
pull_request:
# Read-only token by default.
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build on Node ${{ matrix.node }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node: ["18", "20", "22"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- name: Unit tests
run: node --test tests/*.test.mjs
- name: Check the package contents
run: npm pack --dry-run
- name: Audit production dependencies
run: npm audit --omit=dev --audit-level=high
docker:
name: Docker image builds
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- run: docker build -t mcp-maigret .