Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local only #6879

Merged
merged 21 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
5 changes: 0 additions & 5 deletions .github/actions/baas-test-server/.eslintrc.json

This file was deleted.

22 changes: 0 additions & 22 deletions .github/actions/baas-test-server/action.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/actions/baas-test-server/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/baas-test-server/start-server.js

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/baas-test-server/stop-server.js

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/package-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
- realm
- '@realm/babel-plugin'
- '@realm/react'
include:
- workspace: '@realm/react'
use-baas: true
name: ${{ matrix.workspace }} unit tests
runs-on: ubuntu-latest
steps:
Expand All @@ -53,15 +50,4 @@ jobs:
# (--ignore-scripts to avoid downloading or building the native module)
- run: npm ci --ignore-scripts

- name: Start BaaS test server
id: baas
if: ${{matrix.use-baas}}
uses: ./.github/actions/baas-test-server
with:
branch: ${{ env.BAAS_BRANCH }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}

- run: npm test --workspace ${{ matrix.workspace }}
env:
REALM_BASE_URL: ${{ steps.baas.outputs.baas-url }}
10 changes: 1 addition & 9 deletions .github/workflows/pr-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,11 @@ jobs:
# Ignoring scripts to prevent a prebuilt from getting fetched / built
run: npm ci --ignore-scripts

- 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 tests with coverage
timeout-minutes: 60
run: npm run ci:coverage --workspace @realm/integration-tests -- --reporter mocha-github-actions-reporter --timeout ${{ env.MOCHA_TIMEOUT }}
env:
CONTEXT: syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}
CONTEXT: longTimeoutMs=${{ env.LONG_TIMEOUT }}

- name: Coveralls
uses: coverallsapp/github-action@v2
34 changes: 3 additions & 31 deletions .github/workflows/pr-realm-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
paths-ignore:
- "**.md"
- "**.png"
- "packages/realm-web/**"
- "packages/realm-web-integration-tests/**"
- "packages/realm-react/**"
- "packages/realm-tools/**"
pull_request:
Expand All @@ -19,8 +17,6 @@ on:
paths-ignore:
- "**.md"
- "**.png"
- "packages/realm-web/**"
- "packages/realm-web-integration-tests/**"
- "packages/realm-react/**"
- "packages/realm-tools/**"
workflow_dispatch:
Expand Down Expand Up @@ -463,17 +459,9 @@ jobs:
# Ensure we install the prebuild built in the previous job
npm_config_realm_local_prebuilds: ${{github.workspace}}/packages/realm/prebuilds

- 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: Create Mocha Remote Context
id: mocha-env
run: echo "context=syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}" >> $GITHUB_OUTPUT
run: echo "context=longTimeoutMs=${{ env.LONG_TIMEOUT }}" >> $GITHUB_OUTPUT

- name: Run tests
env:
Expand Down Expand Up @@ -570,17 +558,9 @@ jobs:
echo "Simulator booted with UDID = $SIMULATOR_UDID"
echo "SIMULATOR_UDID=$SIMULATOR_UDID" >> $GITHUB_ENV

- 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: Create Mocha Remote Context
id: mocha-env
run: echo "context=syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}" >> $GITHUB_OUTPUT
run: echo "longTimeoutMs=${{ env.LONG_TIMEOUT }}" >> $GITHUB_OUTPUT

# Because the Xcode project injects its own CCACHE_CONFIGPATH,
# the configuration set by the ccache action doesn't propagate.
Expand Down Expand Up @@ -681,17 +661,9 @@ jobs:
# Ignoring scripts to prevent a prebuild from getting fetched / built
run: npm ci --ignore-scripts

- 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: Create Mocha Remote Context
id: mocha-env
run: echo "context=syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}" >> $GITHUB_OUTPUT
run: echo "context=longTimeoutMs=${{ env.LONG_TIMEOUT }}" >> $GITHUB_OUTPUT

- name: Setup Java Gradle cache for android test app
uses: actions/cache@v4
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/pr-realm-web.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/test-server.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ integration-tests/tests/src/bench/rolledup.js
# TODO: Solve .lock files are produced in "throws when called with an empty string"
integration-tests/**/.lock

# Credentials for the BaaS test server
integration-tests/baas-test-server/.env

# Test coverage artifacts
coverage/
.nyc_output/
Expand Down
Loading
Loading