mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Reorganize crates * Remove symlink * Check examples * Cleanup CI scripts * nits * cleanup * cargo fmt * Fix yew-stdweb * cargo clippy --all * stdweb-examples * run_emscripten_checks.sh * Fix typo * fix typo * yew-stdweb * Run tests from yew-stdweb * fix webgl script
28 lines
678 B
Bash
Executable File
28 lines
678 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 --all -- --deny=warnings
|
|
cargo check --all
|
|
|
|
# Enable all optional features
|
|
(cd yew \
|
|
&& cargo check --features cbor,msgpack,toml,yaml \
|
|
&& cargo clippy --features cbor,msgpack,toml,yaml -- --deny=warnings)
|
|
|
|
# Check stdweb
|
|
pushd yew-stdweb
|
|
cargo fmt --all -- --check
|
|
cargo clippy --all -- --deny=warnings
|
|
cargo check --all --target wasm32-unknown-unknown
|
|
|
|
# webgl_stdweb doesn't play nice with wasm-bindgen
|
|
(cd examples/webgl && cargo web check --target wasm32-unknown-unknown)
|
|
popd |