Skip to content

docs: show dimmed provisional TPS in the startup demo line #60

docs: show dimmed provisional TPS in the startup demo line

docs: show dimmed provisional TPS in the startup demo line #60

Workflow file for this run

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