feat: support Better Auth 1.7 with atomic storage #108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Example (Hono) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - ".prettierignore" | |
| - "src/**" | |
| - "scripts/**" | |
| - "tsconfig.json" | |
| - "examples/hono/**" | |
| - ".github/workflows/build-hono-example.yml" # This file | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - ".prettierignore" | |
| - "src/**" | |
| - "scripts/**" | |
| - "tsconfig.json" | |
| - "examples/hono/**" | |
| - ".github/workflows/build-hono-example.yml" # This file | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.10.0 | |
| run_install: false | |
| - name: Install root dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build root package | |
| run: pnpm build | |
| - name: Install example dependencies | |
| working-directory: examples/hono | |
| run: pnpm install --frozen-lockfile | |
| - name: Verify generated auth schema and migration chain | |
| working-directory: examples/hono | |
| env: | |
| MIGRATION_BASE: ${{ github.event.pull_request.base.sha || github.event.before }} | |
| run: | | |
| node ../../scripts/verify-migration-history.mjs "$MIGRATION_BASE" . | |
| pnpm auth:update | |
| pnpm db:generate | |
| pnpm exec drizzle-kit check | |
| pnpm db:check | |
| git status --short --untracked-files=all -- src/db/auth.schema.ts drizzle | |
| git diff --exit-code -- src/db/auth.schema.ts drizzle | |
| test -z "$(git ls-files --others --exclude-standard -- src/db/auth.schema.ts drizzle)" | |
| pnpm db:migrate:dev | |
| - name: Build Hono example | |
| working-directory: examples/hono | |
| run: pnpm build |