Skip to content

docs(readme): note that this repo is not a plugin marketplace #7

docs(readme): note that this repo is not a plugin marketplace

docs(readme): note that this repo is not a plugin marketplace #7

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
# Read-only token: CI builds and tests, it never writes to the repo.
permissions:
contents: read
# A newer push to the same branch/PR cancels the in-flight run.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# The plugin ships dual manifests (Claude Code + Codex); their versions
# must never drift apart — release tagging keys off this version.
- name: plugin manifest versions in sync
run: |
a="$(jq -r .version plugin/.claude-plugin/plugin.json)"
b="$(jq -r .version plugin/.codex-plugin/plugin.json)"
if [ "$a" != "$b" ]; then
echo "::error::manifest version drift: .claude-plugin=$a .codex-plugin=$b"
exit 1
fi
- uses: actions/setup-go@v5
with:
# Single source of truth for the Go version: go.mod's `go` directive.
go-version-file: go.mod
cache: true
- name: gofmt
run: |
unformatted="$(gofmt -l . | grep -v '^plugin/bin/' || true)"
if [ -n "$unformatted" ]; then
echo "These files are not gofmt-ed:"
echo "$unformatted"
exit 1
fi
- name: go vet
run: go vet ./...
- name: staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: latest
install-go: false
- name: build
run: go build ./...
- name: test (race + coverage)
run: go test -race -covermode=atomic ./...
# The delivery unit is a static, CGO-free single binary.
# Guard that the packaging build still works, not just `go build ./...`.
# Output matches scripts/build-skill.sh (plugin/bin/opendoc is the
# committed shim — never build over it).
- name: delivery build (static engine binary)
run: CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o plugin/bin/opendoc-dev ./cmd/opendoc