fix(command-sources): tighten prefix helper cleanup #122
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run typecheck | |
| run: bun run typecheck | |
| - name: Run lint | |
| run: bun run lint | |
| - name: Generate schema | |
| run: bun run generate-schema | |
| - name: Verify schema is up-to-date | |
| run: | | |
| if ! git diff --quiet opencode-command-inject.schema.json; then | |
| echo "ERROR: opencode-command-inject.schema.json is out of date" | |
| echo "Run 'bun run generate-schema' and commit the changes" | |
| git diff opencode-command-inject.schema.json | |
| exit 1 | |
| fi | |
| - name: Run tests | |
| run: bun run test |