-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (45 loc) · 1.65 KB
/
Copy pathcode-quality.yml
File metadata and controls
61 lines (45 loc) · 1.65 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
name: "code quality"
# No path filters: the public-hygiene gate scans the whole tree (`--all`), so this
# workflow must run on every push/PR — a backend-only change (e.g. src-tauri/src/**)
# must not be able to skip the hygiene/quality checks.
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Check translation consistency
run: bun run check:translations
- name: Check public repository hygiene
run: bun run check:public-hygiene -- --all
- name: Check Cargo Git dependency pins
run: bun run check:cargo-git-pins
- name: Install cargo-deny
run: cargo install cargo-deny --version 0.19.9 --locked
- name: Check Rust dependency policy
run: bun run check:rust-dependency-policy
- name: Check Tauri security config
run: bun run check:tauri-security
- name: Check model benchmark evidence
run: bun run check:model-benchmark-evidence
- name: Typecheck release gate scripts
run: bun run check:release-gate-scripts
- name: Check release metadata generation
run: bun run check:release-metadata
- name: Run ESLint
run: bun run lint
- name: Run prettier
run: bun run format:check