-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (101 loc) · 2.82 KB
/
ci.yml
File metadata and controls
108 lines (101 loc) · 2.82 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
99
100
101
102
103
104
105
106
107
108
name: CI
on:
push:
pull_request:
jobs:
client-quality:
name: Client quality
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .
working-directory: client
client-typecheck:
name: Client typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup & Install
uses: ./.github/actions/setup-bun-install
- name: Run typecheck
run: bun run typecheck
working-directory: client
client-test:
name: Client test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup & Install
uses: ./.github/actions/setup-bun-install
- name: Run tests
run: bun run vitest:run
working-directory: client
backend-quality:
name: Backend quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup & Install
uses: ./.github/actions/setup-python-install
- name: Run lint
run: make lint
working-directory: backend
- name: Run typecheck
run: make typecheck
working-directory: backend
backend-test:
name: Backend test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup & Install
uses: ./.github/actions/setup-python-install
- name: Run tests
run: make pytest
working-directory: backend
e2e:
name: E2E
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup & Install
uses: ./.github/actions/setup-bun-install
- name: Get Playwright version
id: playwright-version
run: echo "version=$(bun pm ls @playwright/test | grep @playwright/test | sed 's/.*@//')" >> $GITHUB_OUTPUT
working-directory: client
- name: Cache Playwright browsers
uses: actions/cache@v5
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: bun run e2e:install
working-directory: client
- name: Run E2E tests
run: bun run e2e
working-directory: client
- name: Upload report
uses: actions/upload-artifact@v7
if: failure()
with:
name: playwright-report
path: client/playwright-report/
retention-days: 7