Files
tlsn/pre-commit-check.sh
2024-10-14 20:23:19 +02:00

23 lines
423 B
Bash
Executable File

#!/bin/sh
# This script is used to run checks before committing changes to the repository.
# It is a good approximation of what CI will do.
# Fail if any command fails
set -e
# Check formatting
cargo +nightly fmt --all
# Check clippy
cargo clippy --all-features --all-targets -- -D warnings
# Build all targets
# cargo build --all-targets
# Run tests
# cargo test
# Run wasm tests
# ./crates/wasm-test-runner/run.sh