yew/ci/run_checks.sh
Justin Starry 9c9794bd9e Enable clippy in CI (#706)
* Enable clippy in CI

* Fix clippy warnings

* Only run fmt and clippy on stable

* Fix check script
2019-10-14 15:06:07 -04:00

12 lines
230 B
Bash
Executable File

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