-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.33 KB
/
Copy pathci.yml
File metadata and controls
48 lines (45 loc) · 1.33 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
# CI — her push/PR'da frontend + Rust kalite kapısı.
# Yerel pre-commit hook'unun (husky: lint-staged + typecheck + vitest) uzak aynası;
# hook atlanırsa (--no-verify) veya farklı ortamda bozulan bir şey varsa burada yakalanır.
name: CI
on:
push:
branches: [main, 'refactor/**', 'fix/**']
pull_request:
branches: [main]
jobs:
frontend:
name: Frontend (lint + typecheck + test + build)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npx vite build
rust:
name: Rust (clippy + test)
runs-on: ubuntu-latest
defaults:
run:
working-directory: src-tauri
steps:
- uses: actions/checkout@v5
- name: Install Tauri Linux system deps
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \
libayatana-appindicator3-dev librsvg2-dev libssl-dev
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test --lib