Repository navigation
73 lines (63 loc) · 2.08 KB
/
Copy pathci.yml
File metadata and controls
73 lines (63 loc) · 2.08 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
name: CI
on:
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Lint, Type-check & Build (OSS)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.21"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint & format
run: bun x biome check .
- name: Type-check
run: bun run check-types
- name: Seed wrangler config
run: |
mkdir -p apps/web-oss/.alchemy/local
cat > apps/web-oss/.alchemy/local/wrangler.jsonc << 'EOF_INNER'
{
"name": "alphaforge-oss-ci",
"main": "@tanstack/react-start/server-entry",
"compatibility_date": "2026-01-16",
"compatibility_flags": [
"nodejs_compat",
"nodejs_compat_populate_process_env"
],
"assets": {
"directory": "../../dist/client",
"binding": "ASSETS",
"not_found_handling": "none",
"html_handling": "auto-trailing-slash",
"run_worker_first": false
},
"vars": {
"CORS_ORIGIN": "https://placeholder.workers.dev",
"BETTER_AUTH_SECRET": "placeholder-secret-minimum-32-characters!!",
"BETTER_AUTH_URL": "https://placeholder.workers.dev"
},
"d1_databases": [
{
"binding": "DB",
"database_id": "alphaforge-ci-db",
"database_name": "alphaforge-ci-db",
"migrations_dir": "../../packages/db/src/migrations",
"preview_database_id": "alphaforge-ci-db"
}
]
}
EOF_INNER
- name: Build
run: bun run build:web
env:
BETTER_AUTH_SECRET: placeholder-secret-minimum-32-characters!!
BETTER_AUTH_URL: https://placeholder.workers.dev
CORS_ORIGIN: https://placeholder.workers.dev