docs(llms): backfill 15 undocumented premium endpoints + add coverage… #90
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: Web tests | |
| # Runs the frontend test suite (src/**/*.test.ts) on every push to main and PR | |
| # that touches frontend source, the vitest config, or this workflow. The | |
| # Next.js app otherwise has no CI gate, so this is what catches sitemap drift | |
| # (sitemap-integrity.test.ts), originals discoverability drift (the dependency-free | |
| # check-originals-sync step that runs first), and other src-level regressions before | |
| # they ship. Vitest runs in a node environment with no build step, so the job is | |
| # self-contained: the sync-check, then install, then test. | |
| # | |
| # Locally: npm run check:originals && npm run test:web | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/**' | |
| - 'public/llms.txt' | |
| - 'public/robots.txt' | |
| - 'public/ai.txt' | |
| - 'public/.well-known/**' | |
| - 'vitest.config.ts' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'scripts/check-originals-sync.mjs' | |
| - '.github/workflows/web-tests.yml' | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'public/llms.txt' | |
| - 'public/robots.txt' | |
| - 'public/ai.txt' | |
| - 'public/.well-known/**' | |
| - 'vitest.config.ts' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'scripts/check-originals-sync.mjs' | |
| - '.github/workflows/web-tests.yml' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'RipperMercs/tensorfeed' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Originals discoverability sync-check | |
| run: node scripts/check-originals-sync.mjs | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Web test suite | |
| run: npm run test:web |