From 41668b153d5550b3c997a715a60c7eb47637537c Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:14:12 +0300 Subject: [PATCH 1/2] Update test.yml --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 259f574..64a519d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: - run: cargo fmt -- --check # ========================== -# Test +# Tests # ========================== test: name: Test @@ -99,7 +99,7 @@ jobs: restore-keys: | ${{ runner.os }}-cargo- - - run: cargo clippy -j $(nproc) -- --cap-lints warn + - run: cargo clippy -- --cap-lints warn # ========================== # Udeps @@ -130,4 +130,5 @@ jobs: - name: Install cargo-udeps run: cargo install cargo-udeps || true + # тоже не валит билд - run: cargo udeps || true From 761679d3068c6fc770e54677c17b666fcd244955 Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:18:13 +0300 Subject: [PATCH 2/2] Update test.yml --- .github/workflows/test.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 64a519d..8e43dd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,21 +54,20 @@ jobs: uses: actions/cache@v4 with: path: | + ~/.cargo/bin ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-nextest-${{ hashFiles('**/Cargo.lock') }} restore-keys: | + ${{ runner.os }}-cargo-nextest- ${{ runner.os }}-cargo- - - name: Install nextest - uses: taiki-e/install-action@nextest + - name: Install cargo-nextest + run: cargo install --locked cargo-nextest || true - - name: Build tests - run: cargo test --no-run -j $(nproc) - - - name: Run tests - run: cargo nextest run --all-features --no-fail-fast + - name: Run tests with nextest + run: cargo nextest run -j "$(nproc)" # ========================== # Clippy @@ -95,11 +94,13 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }} restore-keys: | + ${{ runner.os }}-cargo-clippy- ${{ runner.os }}-cargo- - - run: cargo clippy -- --cap-lints warn + - name: Run clippy + run: cargo clippy -j "$(nproc)" -- --cap-lints warn # ========================== # Udeps @@ -115,20 +116,24 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + components: rust-src - name: Cache cargo uses: actions/cache@v4 with: path: | + ~/.cargo/bin ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-udeps-${{ hashFiles('**/Cargo.lock') }} restore-keys: | + ${{ runner.os }}-cargo-udeps- ${{ runner.os }}-cargo- - name: Install cargo-udeps - run: cargo install cargo-udeps || true + run: cargo install --locked cargo-udeps || true - # тоже не валит билд - - run: cargo udeps || true + - name: Run udeps + run: cargo udeps -j "$(nproc)" || true