-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
55 lines (44 loc) · 1.3 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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
backend:
name: Backend — lint, types, tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup backend
uses: ./.github/actions/setup-backend
- name: Lint (ruff)
working-directory: backend
run: ruff check .
- name: Type check (mypy)
working-directory: backend
run: mypy app/
- name: Unit tests (pytest)
working-directory: backend
run: pytest tests/unit/ -x --cov=app --cov-report=term-missing
env:
SUPABASE_URL: https://placeholder.supabase.co
SUPABASE_ANON_KEY: placeholder
SUPABASE_SERVICE_KEY: placeholder
SERVER_SECRET: 0000000000000000000000000000000000000000000000000000000000000000
frontend:
name: Frontend — lint, types, tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup frontend
uses: ./.github/actions/setup-frontend
- name: Lint (eslint)
working-directory: frontend
run: npm run lint
- name: Type check (tsc)
working-directory: frontend
run: npx tsc --noEmit
- name: Unit tests (vitest)
working-directory: frontend
run: npm test