docs: show dimmed provisional TPS in the startup demo line #60
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: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| node-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [18, 20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: npm test | |
| - name: Syntax check | |
| shell: bash | |
| run: | | |
| for file in bin/*.mjs hooks/*.mjs src/*.mjs; do | |
| node --check "$file" | |
| done | |
| - name: Empty-input smoke test | |
| run: printf '' | node bin/kimi-hud.mjs | |
| - name: Whitespace check | |
| shell: bash | |
| run: | | |
| before="${{ github.event.before }}" | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| git diff --check "origin/${{ github.base_ref }}...HEAD" | |
| elif [ "$before" != "0000000000000000000000000000000000000000" ] && git cat-file -e "$before^{commit}" 2>/dev/null; then | |
| git diff --check "$before..HEAD" | |
| else | |
| echo "No usable base revision (new ref, tag, or rewritten history); skipping whitespace check." | |
| fi |