Skip to content

Commit

Permalink
Remove use of baas test server
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Sep 9, 2024
1 parent 14204f9 commit 321092c
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 161 deletions.
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
30 changes: 3 additions & 27 deletions .github/workflows/pr-realm-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,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 @@ -566,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 @@ -677,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
36 changes: 0 additions & 36 deletions .github/workflows/test-server.yml

This file was deleted.

0 comments on commit 321092c

Please sign in to comment.