Skip to content

docs(openspec): the world view is KILLED by its own criterion — measu… #175

docs(openspec): the world view is KILLED by its own criterion — measu…

docs(openspec): the world view is KILLED by its own criterion — measu… #175

Workflow file for this run

name: ci
on:
pull_request:
push:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
- run: go vet ./...
- run: go test ./...
- run: go build -o bin/ctx-optimize ./cmd/ctx-optimize
- run: ./bin/ctx-optimize version
- run: ./bin/ctx-optimize help
# The dashboard UI ships as a COMMITTED dist (go:embed), so the Go gate above
# — and `go install` — never need node. But that also means a crash inside the
# bundle reaches users without any Go test noticing (v0.3.6 shipped a Viewer
# that threw on mount). This job runs the UI's own vitest suite, which mounts
# the components and executes their effects.
dashboard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 22
cache: npm
cache-dependency-path: dashboard-ui/package-lock.json
- run: npm ci
working-directory: dashboard-ui
- run: npx tsc -b
working-directory: dashboard-ui
- run: npm test
working-directory: dashboard-ui