stack/.github/workflows
BilalG1 479d5432ba
fix dev failing tests (#955)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- RECURSEML_SUMMARY:START -->
## High-level PR Summary
This PR fixes database schema issues related to Prisma migrations by
setting the correct `search_path` before applying auto-migrations and
removing the `SchemaMigration` table from the CI workflow to ensure
proper schema comparison during migration checks.

⏱️ Estimated Review Time: 5-15 minutes

<details>
<summary>💡 Review Order Suggestion</summary>

| Order | File Path |
|-------|-----------|
| 1 | `apps/backend/src/auto-migrations/index.tsx` |
| 2 | `.github/workflows/check-prisma-migrations.yaml` |
</details>



[![Need help? Join our
Discord](https://img.shields.io/badge/Need%20help%3F%20Join%20our%20Discord-5865F2?style=plastic&logo=discord&logoColor=white)](https://discord.gg/n3SsVDAW6U)


[![Analyze latest
changes](d1ed7a31db/?repo_owner=stack-auth&repo_name=stack-auth&pr_number=955)
<!-- RECURSEML_SUMMARY:END -->
<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Fixes Prisma migration schema issues and a string concatenation error
in `getUserInfo`.
> 
>   - **Database Schema**:
> - Removes `SchemaMigration` table in
`.github/workflows/check-prisma-migrations.yaml` to ensure correct
schema comparison.
> - Sets `STACK_SEED_MODE` to `'true'` in `seed()` in `seed.ts` for
consistent seeding behavior.
>   - **Bug Fix**:
> - Fixes string concatenation error in `getUserInfo` in
`myFunctions.ts` by using `+` instead of `obj.displayName`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 5b664a0fe7. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Corrected user info message to properly display the user’s name in the
example app.

* **Chores**
* CI workflow now clears auto-generated migration metadata before
comparing schema changes to reduce false positives.
* Seeding now explicitly sets a seed-mode environment flag and no longer
auto-executes on direct invocation, enabling more controlled runs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-10-15 13:57:28 -07:00
..
all-good.yaml Add Claude Code GitHub Workflow (#833) 2025-08-07 18:44:49 -07:00
auto-assign.yaml Run auto-assign on draft PRs 2025-04-10 10:18:47 -07:00
auto-update.yaml Run auto-update only once per day 2025-03-12 17:10:03 -07:00
check-prisma-migrations.yaml fix dev failing tests (#955) 2025-10-15 13:57:28 -07:00
claude-code-review.yml Various small fixes 2025-08-19 18:16:08 -07:00
claude.yml Add Claude Code GitHub Workflow (#833) 2025-08-07 18:44:49 -07:00
docker-emulator-test.yaml Port dashboard to Next.js 15 (#560) 2025-03-24 00:03:50 +01:00
docker-server-build.yaml Update Docker build workflow to use ubicloud 2025-07-03 14:12:14 -07:00
docker-server-test.yaml Move Docker test actions to Ubicloud 2025-07-08 18:28:34 -07:00
e2e-api-tests.yaml Convex implementation (#913) 2025-09-24 19:16:45 +00:00
e2e-source-of-truth-api-tests.yaml Convex implementation (#913) 2025-09-24 19:16:45 +00:00
lint-and-build.yaml Convex implementation (#913) 2025-09-24 19:16:45 +00:00
mirror-to-wdb.yaml Fix GitHub Actions concurrency 2025-03-10 14:09:09 -07:00
restart-dev-and-test.yaml Test extra envvars 2025-10-14 10:41:33 -07:00
reviewers-assignees.yml Update review assigner script 2025-09-10 12:05:04 -07:00
setup-tests.yaml Increase test workers 2025-03-19 15:13:24 -07:00
sync-main-to-dev.yml Update sync-main-to-dev script 2025-08-25 14:09:27 -07:00
table-of-contents.yaml GH Actions push trigger only on main or dev branches 2025-03-12 10:52:35 -07:00