-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (46 loc) · 1.26 KB
/
ci.yml
File metadata and controls
60 lines (46 loc) · 1.26 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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: |
package-lock.json
frontend/package-lock.json
infra/package-lock.json
# Install dependencies for all packages
- name: Install root deps
run: npm ci
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21.0'
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: 'backend/python/requirements.txt'
- name: Install Python deps
run: cd backend/python && uv venv && uv pip install -r requirements.txt
- name: Install frontend deps
run: cd frontend && npm ci
- name: Install infra deps
run: cd infra && npm ci
# Run checks
- name: Check formatting
run: npm run format:check
- name: Lint
run: npm run lint
- name: Synth CDK
run: npm run synth
- name: Build frontend
run: cd frontend && npm run build