fix(runtime): align parse-rf2-coord with rf2-z7f7's emitted format #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| # Runs on every push and PR. Smoke-tests the babashka shims and, | |
| # once wired up, the runtime.cljs unit test suite. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install babashka | |
| uses: DeLaGuardo/setup-clojure@bc7570e912b028bbcc22f457adec7fdf98e2f4ed # 12.5 | |
| with: | |
| bb: "latest" | |
| - name: ops.clj parses and dispatches | |
| run: | | |
| # Should emit a structured {:ok? false :reason :unknown-subcommand} | |
| # result without needing a live nREPL. | |
| bb scripts/ops.clj unknown-subcommand 2>&1 | tee out.txt | |
| grep -q ":unknown-subcommand" out.txt | |
| - name: Shell shims are executable and have valid shebangs | |
| run: | | |
| for f in scripts/*.sh; do | |
| test -x "$f" || { echo "$f not executable"; exit 1; } | |
| head -1 "$f" | grep -q '^#!/usr/bin/env bash' || { echo "$f missing bash shebang"; exit 1; } | |
| done | |
| - name: Plugin manifest is valid JSON | |
| run: node -e "JSON.parse(require('fs').readFileSync('.claude-plugin/plugin.json','utf8'))" | |
| - name: Package.json is valid JSON | |
| run: node -e "JSON.parse(require('fs').readFileSync('package.json','utf8'))" | |
| - name: Documented scripts all exist | |
| run: | | |
| for f in $(node -e "console.log(require('./.claude-plugin/plugin.json').scripts.join('\n'))"); do | |
| test -f "$f" || { echo "Missing: $f"; exit 1; } | |
| done |