refactor: move memory.ts + ollama.ts to smriti/src, sync upstream v1.1.6 #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: | |
| test-node: | |
| name: Node ${{ matrix.node-version }} (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| node-version: ["22", "23"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install SQLite (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev | |
| - name: Install SQLite (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install sqlite | |
| - run: npm install | |
| - name: Tests | |
| run: npx vitest run --reporter=verbose test/ | |
| env: | |
| CI: true | |
| test-bun: | |
| name: Bun (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install SQLite (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev | |
| - name: Install SQLite (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install sqlite | |
| - run: bun install | |
| - name: Tests | |
| run: bun test --timeout 30000 --preload ./src/test-preload.ts test/ | |
| env: | |
| CI: true | |
| DYLD_LIBRARY_PATH: /opt/homebrew/opt/sqlite/lib | |
| LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu |