diff --git a/check-before-push-act.sh b/check-before-push-act.sh new file mode 100755 index 0000000..52c4e3b --- /dev/null +++ b/check-before-push-act.sh @@ -0,0 +1,11 @@ +#!/bin/zsh + +set -e + +export CARGO_TERM_COLOR=always +export RUSTFLAGS="-Dwarnings" +export RUSTDOCFLAGS="-Dwarnings" + +cargo fmt --all +cargo clippy --release --all-targets --fix --allow-dirty --allow-staged +act --action-offline-mode -W .github/workflows/build_and_tests_reusable.yaml diff --git a/check-before-push.sh b/check-before-push.sh index 52c4e3b..1b91f73 100755 --- a/check-before-push.sh +++ b/check-before-push.sh @@ -8,4 +8,35 @@ export RUSTDOCFLAGS="-Dwarnings" cargo fmt --all cargo clippy --release --all-targets --fix --allow-dirty --allow-staged -act --action-offline-mode -W .github/workflows/build_and_tests_reusable.yaml + +cargo build --all-targets --all-features +cargo build --release --all-targets --all-features +cargo fmt --all -- --check +cargo check --all +cargo clippy --all-targets --release -- \ + -A clippy::similar_names \ + -A clippy::too_many_arguments \ + -A clippy::significant_drop_tightening \ + -A clippy::redundant_closure \ + -A clippy::missing_errors_doc \ + -A clippy::type_complexity +cargo doc --workspace --all-features --no-deps +cargo test --release --all --all-features +cargo publish --dry-run --allow-dirty +cargo aur +cargo generate-rpm + +cd java-bridge +cargo build --all-targets --all-features +cargo build --release --all-targets --all-features +cargo fmt --all -- --check +cargo check --all +cargo clippy --all-targets --release -- \ + -A clippy::similar_names \ + -A clippy::too_many_arguments \ + -A clippy::significant_drop_tightening \ + -A clippy::redundant_closure \ + -A clippy::missing_errors_doc \ + -A clippy::type_complexity +cargo doc --workspace --all-features --no-deps +cargo test --release --all --all-features