yew/ci/run_checks.sh

13 lines
313 B
Bash
Executable File

#!/usr/bin/env bash
echo "$(rustup default)" | grep -q "stable"
if [ "$?" != "0" ]; then
# only run checks on stable
exit 0
fi
set -euxo pipefail
cargo fmt --all -- --check
cargo clippy --features std_web -- --deny=warnings
cargo clippy --target wasm32-unknown-unknown --features web_sys -- --deny=warnings