diff --git a/.github/workflows/ts-sdk-ci.yml b/.github/workflows/ts-sdk-ci.yml index 9eef5e2ac..c1fb0d0c8 100644 --- a/.github/workflows/ts-sdk-ci.yml +++ b/.github/workflows/ts-sdk-ci.yml @@ -61,12 +61,6 @@ jobs: working-directory: mem0-ts run: pnpm run test:unit - - name: Run integration tests (with cleanup) - working-directory: mem0-ts - env: - MEM0_API_KEY: ${{ secrets.MEM0_API_KEY }} - run: pnpm run test:integration - - name: Verify package exports working-directory: mem0-ts run: | @@ -79,3 +73,38 @@ jobs: with: name: coverage-report path: mem0-ts/coverage/ + + integration_ts_sdk: + needs: build_ts_sdk + runs-on: ubuntu-latest + strategy: + max-parallel: 1 + matrix: + node-version: [20, 22] + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 10 + + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + cache-dependency-path: mem0-ts/pnpm-lock.yaml + + - name: Install dependencies + working-directory: mem0-ts + run: pnpm install --frozen-lockfile + + - name: Build + working-directory: mem0-ts + run: pnpm run build + + - name: Run integration tests (with cleanup) + working-directory: mem0-ts + env: + MEM0_API_KEY: ${{ secrets.MEM0_API_KEY }} + run: pnpm run test:integration