From 6566ec23d35cfb22ad69cf4fdd52149da63701e2 Mon Sep 17 00:00:00 2001 From: Julius Brussee <104168679+JuliusBrussee@users.noreply.github.com> Date: Tue, 21 Jul 2026 02:01:27 +0200 Subject: [PATCH] ci: run the full test suite on every push and PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests existed but nothing ran them in CI. Node 18/20/22 matrix runs the installer suite plus every standalone tests/test_*.js runner; a python job runs unittest discover (compress tests mock the Claude call, no network). Node is set up in the python job too — several python tests shell out to node for hook checks. Inspired by PR #695, minus the scanner extras. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_016ySX6TBWZuvFze4ajf7Hpf --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..00505ef --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + node: + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + matrix: + node-version: [18, 20, 22] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Installer test suite + run: npm test + - name: Standalone hook/tool tests + run: | + for f in tests/test_*.js; do + echo "== $f" + node "$f" + done + + python: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + # Several python tests shell out to node for hook checks — don't rely + # on the runner image happening to ship it. + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Python test suite + run: python -m unittest discover -s tests -v