Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,21 @@ jobs:
path: /tmp/host-dist.log
retention-days: 30

realm-server-vitest-test:
name: Realm Server Vitest Tests
needs: [change-check]
if: needs.change-check.outputs.realm-server == 'true' || github.ref == 'refs/heads/main' || needs.change-check.outputs.run_all == 'true'
runs-on: ubuntu-latest
concurrency:
group: realm-server-vitest-test-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/init
- name: Vitest suite (CS-10346 migration)
run: pnpm test:vitest
working-directory: packages/realm-server

realm-server-merge-reports:
name: Merge Realm Server reports and publish
if: ${{ !cancelled() && (needs.change-check.outputs.realm-server == 'true' || github.ref == 'refs/heads/main' || needs.change-check.outputs.run_all == 'true') }}
Expand Down
3 changes: 3 additions & 0 deletions packages/realm-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"typescript-memoize": "catalog:",
"undici": "catalog:",
"uuid": "catalog:",
"vitest": "catalog:",
"wait-for-localhost-cli": "catalog:",
"wait-on": "^9.0.4",
"yaml": "catalog:",
Expand All @@ -94,6 +95,8 @@
"scripts": {
"test": "./tests/scripts/run-qunit-with-test-pg.sh",
"test-module": "./tests/scripts/run-qunit-with-test-pg.sh --module ${TEST_MODULE}",
"test:vitest": "vitest run",
"codemod:qunit-to-vitest": "NODE_NO_WARNINGS=1 ts-node --transpileOnly scripts/codemods/qunit-to-vitest.ts",
"bench:realm": "LOG_LEVELS='*=warn,prerenderer-chrome=none' TEST_HARNESS_REALM_LOG_LEVELS='*=warn,prerenderer-chrome=none' TEST_HARNESS_PRERENDER_LOG_LEVELS='*=warn,prerenderer-chrome=none' NODE_NO_WARNINGS=1 ts-node --transpileOnly scripts/bench-realm/bench.ts",
"bench:realm:check": "LOG_LEVELS='*=warn,prerenderer-chrome=none' TEST_HARNESS_REALM_LOG_LEVELS='*=warn,prerenderer-chrome=none' TEST_HARNESS_PRERENDER_LOG_LEVELS='*=warn,prerenderer-chrome=none' NODE_NO_WARNINGS=1 ts-node --transpileOnly scripts/bench-realm/check.ts",
"migrate": "NODE_NO_WARNINGS=1 ts-node --transpileOnly scripts/run-migrations.ts",
Expand Down
Loading
Loading