Skip to content

Commit 4d068f7

Browse files
authored
Merge pull request #78 from objectstack-ai/copilot/add-test-cases-for-features
2 parents fb0f318 + f488e9e commit 4d068f7

8 files changed

Lines changed: 2377 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,27 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'pnpm'
2929

30+
- name: Cache MongoDB Binary
31+
uses: actions/cache@v4
32+
with:
33+
path: ~/.cache/mongodb-binaries
34+
key: mongodb-binaries-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
35+
restore-keys: |
36+
mongodb-binaries-${{ runner.os }}-
37+
3038
- name: Install dependencies
3139
run: pnpm install --frozen-lockfile
3240
timeout-minutes: 5
3341

42+
- name: Setup MongoDB Memory Server
43+
run: |
44+
# Pre-download MongoDB binary for mongodb-memory-server
45+
# This allows integration tests to run without network access during tests
46+
cd packages/drivers/mongo
47+
npx mongodb-memory-server preinstall || echo "MongoDB binary download failed, tests will skip gracefully"
48+
timeout-minutes: 3
49+
continue-on-error: true
50+
3451
- name: Build packages
3552
run: pnpm run build
3653
timeout-minutes: 10

packages/drivers/mongo/test/integration.test.ts

Lines changed: 79 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)