Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

jobs:
frontend:
name: Frontend
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.24.0

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build

- name: Audit
run: pnpm audit --audit-level high

rust:
name: Rust
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Tauri system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libayatana-appindicator3-dev \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
patchelf

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt

- name: Check formatting
working-directory: src-tauri
run: cargo fmt --all --check

- name: Clippy
working-directory: src-tauri
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Test
working-directory: src-tauri
run: cargo test --all
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"tauri:build": "tauri build",
"build": "tsc -b && vite build",
"lint": "eslint .",
"audit": "pnpm audit --audit-level high",
"preview": "vite preview"
},
"dependencies": {
"@tauri-apps/api": "^2.11.0",
"@tauri-apps/plugin-dialog": "^2.7.1",
"docx": "^9.7.1",
"dompurify": "^3.4.8",
"jspdf": "^4.2.1",
"lucide-react": "^1.17.0",
"marked": "^18.0.4",
Expand Down
26 changes: 7 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src-tauri/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
fn main() {
tauri_build::build()
}

Loading
Loading