From 0392eeb70de5ad2697854a43d5b4eddd967e532d Mon Sep 17 00:00:00 2001 From: LoricAndre <57358788+LoricAndre@users.noreply.github.com> Date: Fri, 4 Sep 2026 11:56:33 +0200 Subject: [PATCH] ci: lock everything to make sure dependencies match (#1170) * ci: lock everything to make sure dependencies match * fix: build locked for msrv too --- .github/workflows/pr.yml | 10 +++++----- .github/workflows/test.yml | 19 ++++++++----------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a993e1d4..e27672fb 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -88,11 +88,11 @@ jobs: cache-all-crates: "true" - name: Generate files run: | - cargo run -- --man > ./man/man1/sk.1 - cargo run -- --shell bash > ./shell/completion.bash - cargo run -- --shell zsh > ./shell/completion.zsh - cargo run -- --shell fish > ./shell/completion.fish - cargo run -- --shell nushell > ./shell/completion.nu + cargo run --locked -- --man > ./man/man1/sk.1 + cargo run --locked -- --shell bash > ./shell/completion.bash + cargo run --locked -- --shell zsh > ./shell/completion.zsh + cargo run --locked -- --shell fish > ./shell/completion.fish + cargo run --locked -- --shell nushell > ./shell/completion.nu - name: Check diff run: | if git diff --exit-code; then diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40501480..a8cb0f9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -93,7 +93,7 @@ jobs: run: cargo test --doc - name: "Run tests" # Do not use `--all-targets` to avoid running benches - run: cargo nextest run --release --profile ci --bins --lib --examples --tests + run: cargo nextest run --release --locked --profile ci --bins --lib --examples --tests env: LC_ALL: en_US.UTF-8 TERM: xterm-256color @@ -130,7 +130,7 @@ jobs: - name: "Run tests with coverage" # Do not use `--all-targets` to avoid running benches run: | - cargo +nightly llvm-cov nextest --release --profile ci --branch --bins --lib --examples --tests --no-report + cargo +nightly llvm-cov nextest --locked --release --profile ci --branch --bins --lib --examples --tests --no-report cargo +nightly llvm-cov report --release --cobertura --output-path coverage.xml cargo +nightly llvm-cov report --release --html echo "COVERAGE_PERCENT=$(cargo +nightly llvm-cov report --release | tail -n1 | awk '{ print $13 }')" | tee --append $GITHUB_ENV @@ -186,11 +186,11 @@ jobs: - *cache - name: Run clippy with specific features run: | - cargo clippy --no-default-features -- -Dwarnings - cargo clippy --no-default-features --features cli -- -Dwarnings - cargo clippy --no-default-features --features image -- -Dwarnings - cargo clippy --no-default-features --features listen -- -Dwarnings - cargo clippy --no-default-features --features frizbee -- -Dwarnings + cargo clippy --locked --no-default-features -- -Dwarnings + cargo clippy --locked --no-default-features --features cli -- -Dwarnings + cargo clippy --locked --no-default-features --features image -- -Dwarnings + cargo clippy --locked --no-default-features --features listen -- -Dwarnings + cargo clippy --locked --no-default-features --features frizbee -- -Dwarnings msrv: @@ -198,11 +198,8 @@ jobs: steps: - *checkout - *toolchain - - uses: taiki-e/install-action@v2.87.1 - with: - tool: cargo-msrv@0.19 - name: MSRV Verify - run: cargo msrv verify + run: cargo +1.91.0 build --release --locked --all-targets fuzz: permissions: