Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,27 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Cache MongoDB Binary
uses: actions/cache@v4
with:
path: ~/.cache/mongodb-binaries
key: mongodb-binaries-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
mongodb-binaries-${{ runner.os }}-

- name: Install dependencies
run: pnpm install --frozen-lockfile
timeout-minutes: 5

- name: Setup MongoDB Memory Server
run: |
# Pre-download MongoDB binary for mongodb-memory-server
# This allows integration tests to run without network access during tests
cd packages/drivers/mongo
npx mongodb-memory-server preinstall || echo "MongoDB binary download failed, tests will skip gracefully"
timeout-minutes: 3
continue-on-error: true

- name: Build packages
run: pnpm run build
timeout-minutes: 10
Expand Down
92 changes: 79 additions & 13 deletions packages/drivers/mongo/test/integration.test.ts

Large diffs are not rendered by default.

Loading
Loading