From f1e03fde27f0fdc324737de80ce0240954501e36 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Sun, 29 Dec 2024 12:15:59 +0100 Subject: [PATCH] ci/check-style: check all files every time Lazy checks on only files in the diff have a habit of causing CI failures on unrelated PRs. Performance-wise there is no noticable slowdown. --- .ci/check-style | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci/check-style b/.ci/check-style index b2ff27f38..844ef3e08 100755 --- a/.ci/check-style +++ b/.ci/check-style @@ -39,8 +39,7 @@ if git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} HEAD | grep exit 1 fi -RUST_SOURCES=$(git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} HEAD | grep -E "^src/rust.*\.rs\$" | grep -v -E "^src/rust/vendor" | grep -v "^src/rust/bitbox02-rust/src/shiftcrypto\.bitbox02\.rs$" || true) +RUST_SOURCES=$(git ls-files | grep "^src/rust.*\.rs\$" | grep -v "^src/rust/vendor" | grep -v "^src/rust/bitbox02-rust/src/shiftcrypto\.bitbox02\.rs$" || true) if [ -n "$RUST_SOURCES" ] ; then - echo $RUST_SOURCES "$RUSTFMT" --check $RUST_SOURCES fi