| name | Validate Changes |
| description | A workflow to verify that code changes (refactoring, new features) didn't break the scraper or the build. |
Validate Changes
Since this project relies on scraping a 3rd party website (CSFD.cz), validation is crucial to ensure their DOM hasn't changed or our logic isn't broken.
1. Static Analysis & Build
Ensure that TypeScript compiles and the dual-build system works.
yarn build
2. Unit & Integration Tests
Run the test suite. Note that some tests might hit the real CSFD website.
yarn test
3. Real-world Demo
The demo.ts file is a scratchpad for testing the actual scraper against current CSFD pages.
npm run demo
If the demo fails:
- Check your internet connection (CSFD might block generic IPs).
- Check if CSFD changed their DOM layout.
- Verify
User-Agent headers in src/fetchers/fetcher.ts.
4. MCP Server Check
If you modified mcp-server/, verify it builds and starts.
yarn build:mcp
node dist/bin/mcp-server.js