mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
ci: lock everything to make sure dependencies match (#1170)
* ci: lock everything to make sure dependencies match * fix: build locked for msrv too
This commit is contained in:
parent
085f86b127
commit
0392eeb70d
10
.github/workflows/pr.yml
vendored
10
.github/workflows/pr.yml
vendored
|
|
@ -88,11 +88,11 @@ jobs:
|
||||||
cache-all-crates: "true"
|
cache-all-crates: "true"
|
||||||
- name: Generate files
|
- name: Generate files
|
||||||
run: |
|
run: |
|
||||||
cargo run -- --man > ./man/man1/sk.1
|
cargo run --locked -- --man > ./man/man1/sk.1
|
||||||
cargo run -- --shell bash > ./shell/completion.bash
|
cargo run --locked -- --shell bash > ./shell/completion.bash
|
||||||
cargo run -- --shell zsh > ./shell/completion.zsh
|
cargo run --locked -- --shell zsh > ./shell/completion.zsh
|
||||||
cargo run -- --shell fish > ./shell/completion.fish
|
cargo run --locked -- --shell fish > ./shell/completion.fish
|
||||||
cargo run -- --shell nushell > ./shell/completion.nu
|
cargo run --locked -- --shell nushell > ./shell/completion.nu
|
||||||
- name: Check diff
|
- name: Check diff
|
||||||
run: |
|
run: |
|
||||||
if git diff --exit-code; then
|
if git diff --exit-code; then
|
||||||
|
|
|
||||||
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -93,7 +93,7 @@ jobs:
|
||||||
run: cargo test --doc
|
run: cargo test --doc
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
# Do not use `--all-targets` to avoid running benches
|
# 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:
|
env:
|
||||||
LC_ALL: en_US.UTF-8
|
LC_ALL: en_US.UTF-8
|
||||||
TERM: xterm-256color
|
TERM: xterm-256color
|
||||||
|
|
@ -130,7 +130,7 @@ jobs:
|
||||||
- name: "Run tests with coverage"
|
- name: "Run tests with coverage"
|
||||||
# Do not use `--all-targets` to avoid running benches
|
# Do not use `--all-targets` to avoid running benches
|
||||||
run: |
|
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 --cobertura --output-path coverage.xml
|
||||||
cargo +nightly llvm-cov report --release --html
|
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
|
echo "COVERAGE_PERCENT=$(cargo +nightly llvm-cov report --release | tail -n1 | awk '{ print $13 }')" | tee --append $GITHUB_ENV
|
||||||
|
|
@ -186,11 +186,11 @@ jobs:
|
||||||
- *cache
|
- *cache
|
||||||
- name: Run clippy with specific features
|
- name: Run clippy with specific features
|
||||||
run: |
|
run: |
|
||||||
cargo clippy --no-default-features -- -Dwarnings
|
cargo clippy --locked --no-default-features -- -Dwarnings
|
||||||
cargo clippy --no-default-features --features cli -- -Dwarnings
|
cargo clippy --locked --no-default-features --features cli -- -Dwarnings
|
||||||
cargo clippy --no-default-features --features image -- -Dwarnings
|
cargo clippy --locked --no-default-features --features image -- -Dwarnings
|
||||||
cargo clippy --no-default-features --features listen -- -Dwarnings
|
cargo clippy --locked --no-default-features --features listen -- -Dwarnings
|
||||||
cargo clippy --no-default-features --features frizbee -- -Dwarnings
|
cargo clippy --locked --no-default-features --features frizbee -- -Dwarnings
|
||||||
|
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
|
|
@ -198,11 +198,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- *checkout
|
- *checkout
|
||||||
- *toolchain
|
- *toolchain
|
||||||
- uses: taiki-e/install-action@v2.87.1
|
|
||||||
with:
|
|
||||||
tool: cargo-msrv@0.19
|
|
||||||
- name: MSRV Verify
|
- name: MSRV Verify
|
||||||
run: cargo msrv verify
|
run: cargo +1.91.0 build --release --locked --all-targets
|
||||||
|
|
||||||
fuzz:
|
fuzz:
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue