fix(tree): label a directory band once, beside its first card #177
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| js: | |
| name: JS unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm test | |
| mcp: | |
| name: MCP bridge tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| # npm test は tsc を通してから走るので、型が壊れた変更もここで落ちる | |
| - run: npm ci | |
| working-directory: mcp | |
| - run: npm test | |
| working-directory: mcp | |
| go: | |
| name: Go tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| # ripgrep が無いと検索経路のテストが黙って skip される | |
| - name: Install ripgrep | |
| run: sudo apt-get update && sudo apt-get install -y ripgrep | |
| - run: go vet ./... | |
| # -race: ロックの外で JSON 化する類の競合は普通のテストでは表に出ない | |
| - run: go test -race ./... | |
| # 未使用コード (U1000) まで見る。バージョンは固定し、更新は明示的に行う | |
| - name: Staticcheck | |
| run: go run honnef.co/go/tools/cmd/staticcheck@2025.1 ./... |