mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Fix tests
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
This commit is contained in:
parent
643c94f34f
commit
455e99b82e
28
.github/workflows/check-prisma-migrations.yaml
vendored
28
.github/workflows/check-prisma-migrations.yaml
vendored
@ -32,11 +32,29 @@ jobs:
|
||||
with:
|
||||
version: 9.1.2
|
||||
|
||||
# Even just starting the Docker Compose as a daemon is slow because we have to download and build the images
|
||||
# so, we run it in the background
|
||||
- name: Start Docker Compose in background
|
||||
uses: JarvusInnovations/background-action@v1.0.7
|
||||
with:
|
||||
run: docker compose -f docker/dependencies/docker.compose.yaml up -d &
|
||||
# we don't need to wait on anything, just need to start the daemon
|
||||
wait-on: /dev/null
|
||||
tail: true
|
||||
wait-for: 3s
|
||||
log-output-if: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Wait on Postgres
|
||||
run: pnpm run wait-until-postgres-is-ready:pg_isready
|
||||
|
||||
- name: Start Postgres shadow DB
|
||||
run: docker run -d --name postgres-prisma-diff-shadow -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=PLACEHOLDER-PASSWORD--dfaBC1hm1v -e POSTGRES_DB=postgres -p 5432:5432 postgres:latest
|
||||
|
||||
- name: Check for differences in Prisma schema and migrations
|
||||
run: cd apps/backend && pnpm run prisma migrate diff --from-migrations ./prisma/migrations --to-schema-datamodel ./prisma/schema.prisma --shadow-database-url postgres://postgres:PLACEHOLDER-PASSWORD--dfaBC1hm1v@localhost:5432/postgres --exit-code
|
||||
- name: Build packages
|
||||
run: pnpm run build:packages
|
||||
|
||||
- name: Initialize database
|
||||
run: pnpm run db:init
|
||||
|
||||
- name: Check for differences in Prisma schema and current DB
|
||||
run: cd apps/backend && pnpm run prisma migrate diff --from-url postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/stackframe --to-schema-datamodel ./prisma/schema.prisma --shadow-database-url postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/shadow_db --exit-code
|
||||
|
||||
@ -37,7 +37,7 @@ if [ "$STACK_SKIP_MIGRATIONS" = "true" ]; then
|
||||
echo "Skipping migrations."
|
||||
else
|
||||
echo "Running migrations..."
|
||||
prisma migrate deploy --schema=./apps/backend/prisma/schema.prisma
|
||||
pnpm run db:migrate
|
||||
fi
|
||||
|
||||
if [ "$STACK_SKIP_SEED_SCRIPT" = "true" ]; then
|
||||
|
||||
@ -14,9 +14,8 @@
|
||||
"build:backend": "pnpm pre && turbo run build --filter=@stackframe/stack-backend...",
|
||||
"build:dashboard": "pnpm pre && turbo run build --filter=@stackframe/stack-dashboard...",
|
||||
"build:demo": "pnpm pre && turbo run build --filter=demo-app...",
|
||||
"build:docs": "pnpm run build:packages-only && pnpm run build:backend && turbo run generate-openapi-fumadocs && pnpm run --filter=@stackframe/stack-docs generate-docs && pnpm run --filter=@stackframe/stack-docs generate-openapi-docs && turbo run build --filter=@stackframe/stack-docs",
|
||||
"build:docs": "pnpm run build:packages && pnpm run build:backend && turbo run generate-openapi-fumadocs && pnpm run --filter=@stackframe/stack-docs generate-docs && pnpm run --filter=@stackframe/stack-docs generate-openapi-docs && turbo run build --filter=@stackframe/stack-docs",
|
||||
"build:packages": "pnpm pre && turbo run build --filter=./packages/*",
|
||||
"build:packages-only": "turbo run build --filter=./packages/*",
|
||||
"claude-code": "pnpm pre && npx -y @anthropic-ai/claude-code@latest",
|
||||
"cmux": "pnpm pre && npx -y cmux@latest",
|
||||
"codebuff": "pnpm pre && npx codebuff",
|
||||
@ -63,7 +62,7 @@
|
||||
"generate-keys": "pnpm pre && turbo run generate-keys",
|
||||
"generate-sdks": "npx --package=tsx tsx ./scripts/generate-sdks.ts",
|
||||
"generate-sdks:watch": "chokidar --silent -c 'pnpm run generate-sdks' './packages/template' --ignore './packages/template/package.json' --ignore '**/node_modules/**' --ignore '**/dist/**' --ignore '**/.turbo/**' --throttle 2000",
|
||||
"generate-docs": "pnpm run build:packages-only && turbo run generate-openapi-fumadocs && pnpm run --filter=@stackframe/stack-docs generate-docs && pnpm run --filter=@stackframe/stack-docs generate-openapi-docs",
|
||||
"generate-docs": "pnpm run build:packages && turbo run generate-openapi-fumadocs && pnpm run --filter=@stackframe/stack-docs generate-docs && pnpm run --filter=@stackframe/stack-docs generate-openapi-docs",
|
||||
"generate-docs:watch": "chokidar --silent -c 'pnpm run generate-docs' './docs/templates' --throttle 2000",
|
||||
"generate-openapi-docs:watch": "chokidar --silent -c 'pnpm run --filter=@stackframe/stack-docs generate-openapi-docs' './docs/public/openapi/{admin,client,server,webhooks}.json' --throttle 2000"
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user