spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

mods: a workflow typechecks each mod's hooks and tests and runs the tests with claude plugin test on pull requestsBrowse files
poteat authored on Sep 11, 2026 parent 9ebb685 · commit 9e7b3917f181
1 changed file+36 -0compared with 9ebb685
A.github/workflows/mod-tests.yml
@@ -1,0 +1,36 @@
1+name: "Mod tests"
2+
3+on:
4+ pull_request:
5+ paths:
6+ - "mods/**"
7+ - ".github/workflows/mod-tests.yml"
8+
9+permissions:
10+ contents: read
11+
12+jobs:
13+ test:
14+ runs-on: ubuntu-latest
15+ steps:
16+ - name: Checkout repository
17+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+ with:
19+ persist-credentials: false
20+
21+ - name: Install Claude Code and TypeScript
22+ run: npm install -g @anthropic-ai/claude-code typescript@5.9.3
23+
24+ - name: Typecheck each mod's hooks and tests
25+ run: tsc -p mods/tsconfig.json
26+
27+ - name: Run each mod's tests
28+ run: |
29+ status=0
30+ for mod in mods/*/; do
31+ [ -d "$mod/tests" ] || continue
32+ claude plugin test "$mod" || status=1
33+ done
34+ exit $status
35+ env:
36+ CLAUDE_CODE_ENABLE_FUNCTION_HOOKS: "1"