-
Notifications
You must be signed in to change notification settings - Fork 5
98 lines (75 loc) · 1.95 KB
/
Copy pathci.yml
File metadata and controls
98 lines (75 loc) · 1.95 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Lint
run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npx vitest run
format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npx prettier --check .
build:
name: Build
runs-on: ubuntu-latest
needs: [lint-and-typecheck]
env:
NEXT_PUBLIC_SITE_URL: https://agentpostmortem.com
NEXT_PUBLIC_SUPABASE_URL: https://placeholder.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY: placeholder
SUPABASE_SERVICE_ROLE_KEY: placeholder
R2_ACCOUNT_ID: placeholder
R2_ACCESS_KEY_ID: placeholder
R2_SECRET_ACCESS_KEY: placeholder
R2_BUCKET_NAME: placeholder
R2_PUBLIC_URL: https://placeholder.r2.dev
RESEND_API_KEY: placeholder
ADMIN_PASSWORD: placeholder
IP_HASH_PEPPER: placeholder-pepper-32-chars-xxxxxxxxxxxxxxxx
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build