-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (58 loc) · 2.07 KB
/
Copy pathci.yml
File metadata and controls
76 lines (58 loc) · 2.07 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Rust, tray, and extension checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dictionaries
run: |
sudo apt-get update
sudo apt-get install -y hunspell-ru hunspell-en-us wamerican
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt --all --check
- name: architecture guard
run: bash scripts/check-architecture.sh
- name: 50-pass architecture audit
run: bash scripts/check-lay-audit-50.sh
- name: cargo test
run: cargo test --all-targets
- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings
- name: GNOME extension syntax
run: |
python3 -m json.tool extension/lay@radislabus-star.github.io/metadata.json >/dev/null
node --check extension/lay@radislabus-star.github.io/lay-impl.js
node --check extension/lay@radislabus-star.github.io/extension.js
- name: KDE tray and shell scripts syntax
run: |
python3 -m py_compile scripts/*.py
bash -n install.sh update.sh dev-reload.sh scripts/*.sh
- name: CLI explain smoke
run: cargo run --quiet --bin lay -- --explain-correct 'кторое ' | grep -F 'confidence:'
- name: release binaries
run: cargo build --release --bins
- name: ngram cache probe
run: |
cargo run --quiet --bin lay-ngram-corpus -- cache --out target/lay-ci-ngram-ru.json
cargo run --quiet --bin lay-ngram-corpus -- check-cache --cache target/lay-ci-ngram-ru.json
- name: LEM research probe
run: cargo run --quiet --bin lay-lem-research