Update test.yml

This commit is contained in:
Alexey 2026-03-24 21:18:13 +03:00 committed by GitHub
parent 41668b153d
commit 761679d306
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 14 deletions

View File

@ -54,21 +54,20 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/bin
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-nextest-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-cargo-nextest-
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- name: Install nextest - name: Install cargo-nextest
uses: taiki-e/install-action@nextest run: cargo install --locked cargo-nextest || true
- name: Build tests - name: Run tests with nextest
run: cargo test --no-run -j $(nproc) run: cargo nextest run -j "$(nproc)"
- name: Run tests
run: cargo nextest run --all-features --no-fail-fast
# ========================== # ==========================
# Clippy # Clippy
@ -95,11 +94,13 @@ jobs:
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-cargo-clippy-
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- run: cargo clippy -- --cap-lints warn - name: Run clippy
run: cargo clippy -j "$(nproc)" -- --cap-lints warn
# ========================== # ==========================
# Udeps # Udeps
@ -115,20 +116,24 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with:
components: rust-src
- name: Cache cargo - name: Cache cargo
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/bin
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-udeps-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-cargo-udeps-
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- name: Install cargo-udeps - name: Install cargo-udeps
run: cargo install cargo-udeps || true run: cargo install --locked cargo-udeps || true
# тоже не валит билд - name: Run udeps
- run: cargo udeps || true run: cargo udeps -j "$(nproc)" || true