Skip to content

Prepare for realm-web-2.0.1 #1674

Prepare for realm-web-2.0.1

Prepare for realm-web-2.0.1 #1674

Workflow file for this run

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@v4
- uses: actions/setup-node@v4
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 }}