stack/.github/workflows
Zai Shi a7acab4646
Auto migration (#526)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Introduces an automated database migration system, replacing manual
Prisma commands with new scripts and updating workflows, configurations,
and tests accordingly.
> 
>   - **Auto-Migration System**:
> - Introduces `db-migrations.ts` script for handling database
migrations automatically.
> - Adds utility functions in `utils.tsx` for managing migration files.
> - Implements `applyMigrations` and `runMigrationNeeded` in `index.tsx`
for executing migrations.
>   - **Workflow and Scripts**:
> - Updates GitHub workflows (`check-prisma-migrations.yaml`,
`e2e-api-tests.yaml`) to use new migration commands.
> - Replaces `prisma migrate` commands with `db:init`, `db:migrate`,
etc., in `package.json` and `README.md`.
>   - **Testing**:
> - Adds `auto-migration.tests.ts` for testing migration logic and
concurrency handling.
>   - **Configuration**:
> - Updates `.env.development` and `vitest.config.ts` for new
environment variables and paths.
> - Modifies `turbo.json` and `package.json` to include new migration
tasks and scripts.
> 
> <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 2c24183879. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-24 02:38:37 +02:00
..
all-good.yaml Better logging for all-good 2025-06-17 15:11:23 -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 Auto migration (#526) 2025-07-24 02:38:37 +02: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 Auto migration (#526) 2025-07-24 02:38:37 +02:00
e2e-source-of-truth-api-tests.yaml Auto migration (#526) 2025-07-24 02:38:37 +02:00
lint-and-build.yaml New docs (#698) 2025-06-20 13:30:01 -07:00
mirror-to-wdb.yaml Fix GitHub Actions concurrency 2025-03-10 14:09:09 -07:00
restart-dev-and-test.yaml Increase test workers 2025-03-19 15:13:24 -07:00
setup-tests.yaml Increase test workers 2025-03-19 15:13:24 -07:00
table-of-contents.yaml GH Actions push trigger only on main or dev branches 2025-03-12 10:52:35 -07:00