Commit Graph

110 Commits

Author SHA1 Message Date
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
Konsti Wohlwend
22fe096141
Fix source of truth for custom schemas (#764)
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-07-18 11:01:29 -07:00
Armin Stepanyan
bdf8c0e5f9
Add Recurse ML rules for naming and code patterns (#780) 2025-07-18 09:58:23 -07:00
Konsti Wohlwend
a7ef394be4
Source of Truth (#660)
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-07-11 17:59:03 -07:00
Konstantin Wohlwend
a00dcb1cb1 Move Docker test actions to Ubicloud 2025-07-08 18:28:34 -07:00
Zai Shi
668ab68ebb Update Docker build workflow to use ubicloud 2025-07-03 14:12:14 -07:00
Konstantin Wohlwend
d96dceb42b Remove Fern GH Actions 2025-06-20 15:34:42 -07:00
Madison
4e467c4026
New docs (#698)
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Madison Kennedy <madison@Madisons-MacBook-Pro.local>
Co-authored-by: BilalG1 <bg2002@gmail.com>
2025-06-20 13:30:01 -07:00
Konstantin Wohlwend
ab5d33647d Better logging for all-good 2025-06-17 15:11:23 -07:00
Konstantin Wohlwend
2bcbe01ea5 Fix all-good script 2025-06-17 09:28:10 -07:00
Zai Shi
097fbc6e4c
Fix docker (#664)
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
Lint & build / lint_and_build (latest) (push) Has been cancelled
Preview Docs / run (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
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Enable Docker build by removing fail step and switch from `bcrypt` to
`bcryptjs` for password hashing.
> 
>   - **Docker Workflow**:
> - Removed temporary fail step in
`.github/workflows/docker-server-build.yaml` to enable Docker build
process.
>   - **Dependencies**:
> - Replaced `bcrypt` with `bcryptjs` in `package.json` and `hashes.tsx`
for password hashing.
>     - Updated `@types/bcrypt` to `@types/bcryptjs` in `package.json`.
>   - **Documentation**:
> - Added `docker/README.md` with instructions for building and running
Docker containers for server and emulator.
> 
> <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 c7a3ed9f11. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
2025-05-08 01:31:03 +02:00
Htoo Pyae Lwin
466c891fab
chore: add arm support in docker build (#633)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Add ARM support to Docker build in GitHub Actions workflow by
including `linux/arm64` platform.
> 
>   - **GitHub Actions**:
> - Add ARM support to Docker build in
`.github/workflows/docker-server-build.yaml` by including `linux/arm64`
in `platforms` parameter of `docker/build-push-action`.
> 
> <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 10630c432b. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
2025-05-07 02:28:36 +02:00
Konstantin Wohlwend
ead128680d Disable Docker build 2025-04-29 08:57:34 -07:00
Armin Stepanyan
b493a89130
Disable recurse status checks (#618) 2025-04-11 09:15:49 -07:00
Konstantin Wohlwend
1311467c1b Run auto-assign on draft PRs 2025-04-10 10:18:47 -07:00
Konsti Wohlwend
cc3c563c76
Fix auto assign action (#612) 2025-04-07 11:52:39 -07:00
Konstantin Wohlwend
77997b1a1e Auto assign PR creator 2025-04-07 11:43:16 -07:00
Konsti Wohlwend
07be60f054
Port dashboard to Next.js 15 (#560)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Port dashboard to Next.js 15, update dependencies, and enhance Docker
workflows.
> 
>   - **Next.js 15 Migration**:
> - Update `next` to `15.2.3` in `apps/backend/package.json`,
`apps/dashboard/package.json`, and `examples/demo/package.json`.
>     - Remove MDX support in `next.config.mjs`.
> - Use `turbopack` in `dev` scripts in `apps/dashboard/package.json`
and `examples/demo/package.json`.
>   - **Docker Workflows**:
>     - Add `docker-emulator-test.yaml` for testing Docker emulator.
> - Rename `docker-build.yaml` to `docker-server-build.yaml` and
`docker-test.yaml` to `docker-server-test.yaml`.
>     - Update `docker-compose.yaml` for emulator setup.
>   - **Code Refactoring**:
> - Convert several `Page` components to async functions in
`apps/dashboard/src/app`.
>     - Use `dynamic` import for `react-globe.gl` in `globe.tsx`.
>     - Remove `experimental` config in `next.config.mjs`.
>   - **Dependency Updates**:
> - Update `react` and `react-dom` to `19.0.0` in
`apps/backend/package.json`, `apps/dashboard/package.json`, and
`examples/demo/package.json`.
> - Add `pnpm` overrides for `@types/react` and `@types/react-dom` in
multiple `package.json` files.
>   - **Miscellaneous**:
>     - Add `docker/readme.md` for Docker instructions.
>     - Update `entrypoint.sh` for Docker server setup.
>     - Remove `globals.d.ts` as it's empty.
> 
> <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 5f5d8fd65c. It will automatically
update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-03-24 00:03:50 +01:00
Konstantin Wohlwend
0e05662e4e Increase test workers 2025-03-19 15:13:24 -07:00
Konstantin Wohlwend
2605850f95 Increase Vitest test timeout 2025-03-19 15:12:05 -07:00
Konstantin Wohlwend
217e6da8b6 Verbose test outputs 2025-03-19 14:07:21 -07:00
Konstantin Wohlwend
656bf4c44b chore: update package versions 2025-03-19 12:54:10 -07:00
Konstantin Wohlwend
130c8e648e Fix CI 2025-03-19 09:32:10 -07:00
Konstantin Wohlwend
79668811db Disable file parallelism for dev tests 2025-03-18 13:13:52 -07:00
Zai Shi
fa599792d6 allow outside PR to run fern preview 2025-03-13 09:56:27 -07:00
Konstantin Wohlwend
717cb7e12c Remove PR trigger for Docker push 2025-03-13 09:46:08 -07:00
Konstantin Wohlwend
66c5823349 Run auto-update only once per day 2025-03-12 17:10:03 -07:00
Konstantin Wohlwend
08d7403527 Run auto-update every 6 hours 2025-03-12 17:07:15 -07:00
Konstantin Wohlwend
16704f778c Attempt CI fix 2025-03-12 16:50:55 -07:00
Konstantin Wohlwend
4a52f52721 Fix CI 2025-03-12 14:52:54 -07:00
Konstantin Wohlwend
67dc31687f Fix all-good for PRs 2025-03-12 14:42:12 -07:00
Konstantin Wohlwend
8cc3393110 GH Actions push trigger only on main or dev branches 2025-03-12 10:52:35 -07:00
Konstantin Wohlwend
bd687e8c43 Re-add pull request trigger to GH Actions 2025-03-12 10:43:36 -07:00
Konstantin Wohlwend
7c3c4863ab Fix GitHub Actions concurrency 2025-03-10 14:09:09 -07:00
Konstantin Wohlwend
1f10e26139 Fix GH Actions concurrency 2025-03-10 14:07:59 -07:00
Konstantin Wohlwend
a2dbecb606 Cancel in-progress GitHub Actions on feature branches 2025-03-10 12:14:58 -07:00
Konstantin Wohlwend
7f2a378286 Run E2E tests only once 2025-03-10 12:10:06 -07:00
Konstantin Wohlwend
e5b32013cb Update all-good to understand neutral checks 2025-03-10 12:04:51 -07:00
Konstantin Wohlwend
d24105dd42 Use PAT for auto update 2025-03-07 14:19:08 -08:00
Konstantin Wohlwend
316233b165 Continue auto-update on error 2025-03-07 14:05:52 -08:00
Konsti Wohlwend
b41681d1e4
Reduce test flakeyness (#517)
Some checks failed
All good? / all-good (push) Has been cancelled
Update pull request branches / Update pull request branches (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-03-07 13:34:50 -08:00
Konstantin Wohlwend
0e17833609 Ignore PR merge conflicts in GH Actions 2025-03-05 00:03:57 -08:00
Konstantin Wohlwend
95e4827c14 Give PR updater more permissions 2025-03-05 00:01:11 -08:00
Konsti Wohlwend
d072df29d8
Automatically update pull request branches (#509) 2025-03-04 23:52:05 -08:00
devin-ai-integration[bot]
7920440eb6
Update branding from Stack to Stack Auth in documentation (#504)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: zai@stack-auth.com <zai@stack-auth.com>
2025-03-04 04:07:54 +01:00
Zai Shi
427ab34adb
Codegen + macros for SDK docs (#456) 2025-02-27 23:12:30 +01:00
Konstantin Wohlwend
f4db6df342 Run E2E tests on latest Node.js version 2025-02-27 14:06:14 -08:00
Konstantin Wohlwend
93cbf8f7da Run E2E API tests on Node v22 too 2025-02-27 14:05:32 -08:00
devin-ai-integration[bot]
36bd601c35
Add restart-dev-environment script and GitHub action (#474)
Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-26 14:56:53 -08:00
Zai Shi
4df77497a0 Update GitHub repository links in documentation 2025-02-20 10:14:55 -08:00