docs: link example file and fix strict type errors #6
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: Agent Cassette CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test-replay: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install Dependencies | |
| run: npm ci | |
| # 1. Lint Check | |
| - name: Lint Code | |
| run: npm run lint | |
| # 2. Unit Tests (Core Logic) | |
| - name: Run Unit Tests | |
| run: npm test | |
| # 3. Node-RED Replay (No API Key needed) | |
| - name: Verify Node-RED Generator (Replay Mode) | |
| run: npm run nodered:replay | |
| env: | |
| CASSETTE_MODE: replay |