feat: v1.8.0 usability and hardening upgrade #1
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # 18 is the engines floor; verify it stays honest (built-in fetch, no ESM-only deps) | |
| node-version: [18.x, 20.x, 24.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Test | |
| run: npm test | |
| - name: Verify committed dist matches source | |
| run: | | |
| if ! git diff --exit-code --stat dist/; then | |
| echo "::error::dist/ is stale - run 'npm run build' and commit the result" | |
| exit 1 | |
| fi | |
| - name: Smoke test CLI | |
| run: | | |
| node dist/cli.js --version | |
| node dist/cli.js models | head -30 |