docs: document host discovery rules, refresh README and CLAUDE.md #23
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| node-version: [20, 22, 24] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm ci | |
| # Coverage thresholds are pinned at 100% in vitest.config.mjs, so this | |
| # also fails the build if a change adds an untested line or branch. | |
| - name: Run tests | |
| run: npx vitest run --coverage | |
| # The dependency tree is platform independent — auditing it once is enough. | |
| - name: Security audit | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == 22 | |
| run: npm audit --audit-level=high |