Skip to content

Commit 51a0860

Browse files
committed
tests and logging
1 parent e5b0218 commit 51a0860

34 files changed

Lines changed: 4475 additions & 738 deletions

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
19+
- name: Install frontend dependencies
20+
working-directory: frontend
21+
run: npm ci
22+
23+
- name: Install app dependencies
24+
working-directory: app
25+
run: npm ci
26+
27+
- name: Lint frontend
28+
working-directory: frontend
29+
run: npm run lint
30+
31+
- name: Typecheck frontend
32+
working-directory: frontend
33+
run: npx tsc -b
34+
35+
- name: Typecheck app
36+
working-directory: app
37+
run: npx tsc -p tsconfig.json --noEmit
38+
39+
- name: Test frontend
40+
working-directory: frontend
41+
run: npm test
42+
43+
- name: Test app
44+
working-directory: app
45+
run: npm test
46+
47+
- name: Build frontend
48+
working-directory: frontend
49+
run: npm run build
50+
51+
- name: Build app
52+
working-directory: app
53+
run: npm run build

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
working-directory: app
3030
run: npm ci
3131

32+
- name: Run tests
33+
run: |
34+
npm --prefix frontend test
35+
npm --prefix app test
36+
3237
- name: Build and publish
3338
working-directory: app
3439
run: npm run build:all && npx electron-builder --publish always

0 commit comments

Comments
 (0)