From 2f87aee4b0790043c1d2ebc95a3e93f02217cc67 Mon Sep 17 00:00:00 2001 From: vitaliytv Date: Thu, 13 Aug 2026 13:41:54 +0300 Subject: [PATCH 1/2] =?UTF-8?q?fix(ci):=20lint-style=20=E2=80=94=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D0=B1=D1=80=D0=B0=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=B2=D1=96=D0=B9=D0=BD=D0=B8=D0=B9=20checkout,=20=D1=89=D0=BE?= =?UTF-8?q?=20=D0=BB=D0=B0=D0=BC=D0=B0=D0=B2=20bunx=20n-rules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Коміт 3ed8366 додав канонічний крок `bunx n-rules lint style --no-fix` після наявних кроків замість їх заміни: другий actions/checkout@v6 чистив робоче дерево (git clean прибирав node_modules після setup-bun-deps), тож bunx не знаходив локальний бін n-rules (@7n/rules) і падав з «could not determine executable to run for package n-rules». Воркфлоу приведено до канон-шаблону lint_style_yml: один checkout (SHA-пін збережено) → setup-bun-deps → лінт; крок `npx stylelint --fix` у read-only CI прибрано. Co-Authored-By: Claude Fable 5 --- .github/workflows/lint-style.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/lint-style.yml b/.github/workflows/lint-style.yml index 7aa02b3..b15abae 100644 --- a/.github/workflows/lint-style.yml +++ b/.github/workflows/lint-style.yml @@ -35,10 +35,5 @@ jobs: - uses: ./.github/actions/setup-bun-deps - - name: StyleLint - run: npx stylelint '**/*.{css,scss,vue}' --fix - - uses: actions/checkout@v6 - with: - persist-credentials: false - name: StyleLint run: bunx n-rules lint style --no-fix From e5d38ebfb6700a9f0c268fdca4670f7d85e47f3e Mon Sep 17 00:00:00 2001 From: vitaliytv Date: Thu, 13 Aug 2026 13:41:54 +0300 Subject: [PATCH 2/2] =?UTF-8?q?fix(ci):=20lint-repo=20=E2=80=94=20Rust=20t?= =?UTF-8?q?oolchain=20=D1=96=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=BD?= =?UTF-8?q?=D1=96=20=D0=B7=D0=B0=D0=BB=D0=B5=D0=B6=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=96=20Tauri=20=D0=B4=D0=BB=D1=8F=20rust/check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `bunx n-rules lint --repo-wide` запускає rust/check (bare `cargo clippy --all-targets --all-features -- -D warnings` з кореня), але воркфлоу не ставив ні toolchain, ні glib/gtk/webkit — clippy падав на збірці src-tauri з кодом 101 (cargo-clippy-violation), тоді як ідентична команда в lint-rust.yml зелена саме завдяки цим крокам. Додано dtolnay/rust-toolchain + Swatinem/rust-cache + apt-залежності Tauri (дзеркально до lint-rust.yml; канон lint_repo_yml — deep-subset, додаткові кроки дозволені). Назви apt-пакетів — у словник .cspell.json. Co-Authored-By: Claude Fable 5 --- .cspell.json | 5 +++++ .github/workflows/lint-repo.yml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.cspell.json b/.cspell.json index 96c16f3..5410188 100644 --- a/.cspell.json +++ b/.cspell.json @@ -21,6 +21,7 @@ "@nitra/cspell-dict/cspell-ext.json" ], "words": [ + "appindicator", "autobins", "cdylib", "chrono", @@ -35,6 +36,10 @@ "journaling", "keypair", "kfse", + "libayatana", + "librsvg", + "libwebkit", + "libxdo", "lipo", "mgmt", "microlesson", diff --git a/.github/workflows/lint-repo.yml b/.github/workflows/lint-repo.yml index 16122d9..c1a425e 100644 --- a/.github/workflows/lint-repo.yml +++ b/.github/workflows/lint-repo.yml @@ -27,5 +27,19 @@ jobs: - uses: ./.github/actions/setup-bun-deps + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - uses: Swatinem/rust-cache@v2 + + # Системні залежності Tauri v2 на Linux (glib/gtk/webkit) — без них + # clippy у rust/check не збере src-tauri (як у lint-rust.yml). + - name: Install Tauri system deps + run: >- + sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev + libgtk-3-dev librsvg2-dev libxdo-dev libssl-dev + libayatana-appindicator3-dev + - name: Repo-wide lint run: bunx n-rules lint --repo-wide --no-fix