Skip to content

Commit ebe580e

Browse files
committed
Add automated tests and CI coverage
1 parent 0bf0b0d commit ebe580e

10 files changed

Lines changed: 1651 additions & 163 deletions

File tree

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
frontend:
14+
name: Frontend tests
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v6
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version: 20
25+
cache: npm
26+
27+
- name: Install frontend dependencies
28+
run: npm ci
29+
30+
- name: Run frontend tests
31+
run: npm run test
32+
33+
- name: Build frontend
34+
run: npm run build
35+
36+
backend:
37+
name: Backend tests
38+
runs-on: ubuntu-24.04
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v6
43+
44+
- name: Setup Rust
45+
uses: dtolnay/rust-toolchain@stable
46+
47+
- name: Install Linux build dependencies
48+
run: |
49+
sudo apt-get update
50+
sudo apt-get install -y \
51+
libwebkit2gtk-4.1-dev \
52+
libjavascriptcoregtk-4.1-dev \
53+
libgtk-3-dev \
54+
libayatana-appindicator3-dev \
55+
librsvg2-dev \
56+
build-essential \
57+
pkg-config
58+
59+
- name: Run Rust tests
60+
run: cargo test --manifest-path src-tauri/Cargo.toml

0 commit comments

Comments
 (0)