-
Notifications
You must be signed in to change notification settings - Fork 38
75 lines (65 loc) · 2.34 KB
/
Copy pathbuild-hono-example.yml
File metadata and controls
75 lines (65 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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