ci: add integration test job for TS SDK on Node 20 and 22
This commit is contained in:
@@ -61,12 +61,6 @@ jobs:
|
|||||||
working-directory: mem0-ts
|
working-directory: mem0-ts
|
||||||
run: pnpm run test:unit
|
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
|
- name: Verify package exports
|
||||||
working-directory: mem0-ts
|
working-directory: mem0-ts
|
||||||
run: |
|
run: |
|
||||||
@@ -79,3 +73,38 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: coverage-report
|
name: coverage-report
|
||||||
path: mem0-ts/coverage/
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user