feat: add event-driven memory extraction with entry file generation (#6) #52
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: | |
| # Node 18 not supported by vitest 4.x (requires ^20.0.0 || ^22.0.0 || >=24.0.0) | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| cache-dependency-path: cli/package-lock.json | |
| - name: Install dependencies | |
| working-directory: cli | |
| run: npm ci | |
| - name: Build | |
| working-directory: cli | |
| run: npm run build | |
| - name: Check CLI runs | |
| working-directory: cli | |
| run: node dist/index.js --help | |
| - name: Run tests | |
| working-directory: cli | |
| run: npm test | |
| - name: Run tests with coverage | |
| if: matrix.node-version == '20.x' | |
| working-directory: cli | |
| run: npm run test:coverage | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| cache-dependency-path: cli/package-lock.json | |
| - name: Install dependencies | |
| working-directory: cli | |
| run: npm ci | |
| - name: TypeScript check | |
| working-directory: cli | |
| run: npx tsc --noEmit | |