docs(openspec): the world view is KILLED by its own criterion — measu… #175
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 | |
| 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 |