diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..cd12853 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,17 @@ + + +- Closes +- [ ] I have followed the instructions in the PR template +- [ ] I have run `cargo fmt` and `cargo clippy` +- [ ] I ran `./scripts/check.sh` diff --git a/examples/all.rs b/examples/all.rs index 96cca8b..d5d975d 100644 --- a/examples/all.rs +++ b/examples/all.rs @@ -28,7 +28,7 @@ impl App for ExampleApp { ui.checkbox(&mut self.closable, "Closable"); ui.checkbox(&mut self.show_progress_bar, "ShowProgressBar"); if !(self.expires || self.closable) { - ui.label("Warning; toasts will have to be closed programatically"); + ui.label("Warning; toasts will have to be closed programmatically"); } ui.add_enabled_ui(self.expires, |ui| { ui.horizontal(|ui| { diff --git a/scripts/check.sh b/scripts/check.sh new file mode 100755 index 0000000..f74d466 --- /dev/null +++ b/scripts/check.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# This scripts runs various CI-like checks in a convenient way. + +set -eu +script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) +cd "$script_path/.." +set -x + +cargo install --quiet typos-cli + +export RUSTDOCFLAGS="-D warnings" + +typos +cargo fmt --all -- --check +cargo clippy --quiet --all-features -- -D warnings +cargo check --quiet --all-targets +cargo test --quiet --all-targets +cargo test --quiet --doc + +echo "All checks passed." \ No newline at end of file