mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
[Feat] [Refactor]: Implement Bulldozer JS (#1700)
This commit is contained in:
@@ -158,7 +158,29 @@ jobs:
|
||||
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
|
||||
# This job runs base-branch code, so only start/backfill bulldozer-js when the base
|
||||
# branch actually ships it (skipped on the PR that introduces bulldozer-js). Mirrors
|
||||
# the run-cron-jobs hashFiles guard below.
|
||||
- name: Start bulldozer-js in background
|
||||
if: ${{ hashFiles('apps/bulldozer-js/package.json') != '' }}
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
env:
|
||||
HEXCLAVE_BULLDOZER_JS_USE_TMP_LMDB: "1"
|
||||
with:
|
||||
run: pnpm run start:bulldozer &
|
||||
wait-on: |
|
||||
tcp:localhost:8146
|
||||
tail: true
|
||||
wait-for: 30s
|
||||
log-output-if: true
|
||||
|
||||
# db:init only seeds Postgres now; mirror the seeded payment rows into the
|
||||
# fresh bulldozer-js store so the backend's payment reads aren't empty.
|
||||
- name: Backfill Bulldozer from Postgres
|
||||
if: ${{ hashFiles('apps/bulldozer-js/package.json') != '' }}
|
||||
run: pnpm run db:backfill-bulldozer-from-prisma
|
||||
|
||||
- name: Start stack-backend in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
with:
|
||||
@@ -366,6 +388,23 @@ jobs:
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
- name: Start bulldozer-js in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
env:
|
||||
HEXCLAVE_BULLDOZER_JS_USE_TMP_LMDB: "1"
|
||||
with:
|
||||
run: pnpm run start:bulldozer &
|
||||
wait-on: |
|
||||
tcp:localhost:8146
|
||||
tail: true
|
||||
wait-for: 30s
|
||||
log-output-if: true
|
||||
|
||||
# db:init only seeds Postgres now; mirror the seeded payment rows into the
|
||||
# fresh bulldozer-js store so the backend's payment reads aren't empty.
|
||||
- name: Backfill Bulldozer from Postgres
|
||||
run: pnpm run db:backfill-bulldozer-from-prisma
|
||||
|
||||
- name: Start stack-backend in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
with:
|
||||
|
||||
@@ -115,6 +115,23 @@ jobs:
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
- name: Start bulldozer-js in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
env:
|
||||
HEXCLAVE_BULLDOZER_JS_USE_TMP_LMDB: "1"
|
||||
with:
|
||||
run: pnpm run start:bulldozer &
|
||||
wait-on: |
|
||||
tcp:localhost:8146
|
||||
tail: true
|
||||
wait-for: 30s
|
||||
log-output-if: true
|
||||
|
||||
# db:init only seeds Postgres now; mirror the seeded payment rows into the
|
||||
# fresh bulldozer-js store so the backend's payment reads aren't empty.
|
||||
- name: Backfill Bulldozer from Postgres
|
||||
run: pnpm run db:backfill-bulldozer-from-prisma
|
||||
|
||||
- name: Start stack-backend in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
with:
|
||||
|
||||
@@ -109,6 +109,23 @@ jobs:
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
- name: Start bulldozer-js in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
env:
|
||||
HEXCLAVE_BULLDOZER_JS_USE_TMP_LMDB: "1"
|
||||
with:
|
||||
run: pnpm run start:bulldozer &
|
||||
wait-on: |
|
||||
tcp:localhost:6746
|
||||
tail: true
|
||||
wait-for: 30s
|
||||
log-output-if: true
|
||||
|
||||
# db:init only seeds Postgres now; mirror the seeded payment rows into the
|
||||
# fresh bulldozer-js store so the backend's payment reads aren't empty.
|
||||
- name: Backfill Bulldozer from Postgres
|
||||
run: pnpm run db:backfill-bulldozer-from-prisma
|
||||
|
||||
- name: Start stack-backend in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
with:
|
||||
|
||||
@@ -91,6 +91,23 @@ jobs:
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
- name: Start bulldozer-js in background
|
||||
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
|
||||
env:
|
||||
HEXCLAVE_BULLDOZER_JS_USE_TMP_LMDB: "1"
|
||||
with:
|
||||
run: pnpm run start:bulldozer &
|
||||
wait-on: |
|
||||
tcp:localhost:8146
|
||||
tail: true
|
||||
wait-for: 30s
|
||||
log-output-if: true
|
||||
|
||||
# db:init only seeds Postgres now; mirror the seeded payment rows into the
|
||||
# fresh bulldozer-js store so the backend's payment reads aren't empty.
|
||||
- name: Backfill Bulldozer from Postgres
|
||||
run: pnpm run db:backfill-bulldozer-from-prisma
|
||||
|
||||
# Start backend ONLY on fallback port 8110 — primary port 8102 is intentionally left down
|
||||
# so the SDK exercises its fallback logic for every request.
|
||||
- name: Start stack-backend on fallback port (8110)
|
||||
|
||||
Reference in New Issue
Block a user