Add bson ^5 to peerDeps in addition to ^4 #1522
This file contains 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: Testing Realm Web (Pull Request) | |
on: | |
pull_request: | |
paths: | |
# Only run when the PR makes changes to the packages | |
- "packages/realm-web/**" | |
- "packages/realm-web-integration-tests/**" | |
- "packages/realm-network-transport/**" | |
- "packages/realm-common/**" | |
- "packages/realm-app-importer/**" | |
# Changing types might also affect Realm Web | |
- "types/**" | |
# No need to run when updating documentation | |
- "!**.md" | |
env: | |
REALM_DISABLE_ANALYTICS: 1 | |
jobs: | |
job: | |
name: Build & test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install npm v7 | |
run: npm install -g npm@8 | |
# Install the root package (--ignore-scripts to avoid downloading or building the native module) | |
- run: npm ci --ignore-scripts | |
# Bootstrap lerna sub-packages | |
- run: npx lerna bootstrap --scope realm-web-integration-tests --include-dependencies | |
# Build and test the package | |
- run: npm run build | |
working-directory: packages/realm-web | |
- name: Run unit tests | |
run: npm test | |
working-directory: packages/realm-web | |
# Login with the Docker CLI to enable the integration test harness to pull the mongodb-realm-test-server | |
- name: Docker Login | |
uses: azure/docker-login@v1 | |
with: | |
login-server: ghcr.io | |
username: realm-ci | |
password: ${{ secrets.REALM_CI_GITHUB_API_KEY }} | |
- name: Run integration tests | |
run: npm run test:github | |
working-directory: packages/realm-web-integration-tests | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.BAAS_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.BAAS_AWS_SECRET_ACCESS_KEY }} | |
MONGODB_REALM_TEST_SERVER: "2023-02-22" |