Remove node-fetch
dependency from SDK, introduce @realm/fetch
and allow passing fetch
through AppConfiguration
#1599
Workflow file for this run
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-common/**" | |
- "packages/realm-app-importer/**" | |
# Changing types might also affect Realm Web | |
- "types/**" | |
# Or the workflow itself | |
- ".github/workflows/pr-realm-web.yml" | |
# No need to run when updating documentation | |
- "!**.md" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
REALM_DISABLE_ANALYTICS: 1 | |
BAAS_BRANCH: master | |
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: 20 | |
registry-url: https://registry.npmjs.org/ | |
# Install the root package | |
- run: npm ci | |
# Build and test the package | |
- run: npm run bundle --workspace realm-web | |
- name: Run unit tests | |
run: npm test --workspace realm-web | |
- name: Start BaaS test server | |
id: baas | |
uses: ./.github/actions/baas-test-server | |
with: | |
branch: ${{ env.BAAS_BRANCH }} | |
env: | |
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }} | |
- name: Run integration tests | |
run: npm test --workspace realm-web-integration-tests | |
env: | |
BAAS_BASE_URL: ${{ steps.baas.outputs.baas-url }} |