-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes PRs easier to manage, as the tests are automatically ran. It also makes it safer to commit, as the `pre-hook` rule can be used as a pre-commit hook to prevent commiting code that doesn't work. I also marked the Menu action example as no_run, since it doesn't really help to run it, and it makes tests a lot slower.
- Loading branch information
Showing
6 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Continous Integration | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
CARGO_TERM_COLORS: always | ||
|
||
jobs: | ||
clippy_fmt_docs_check: | ||
name: Check clippy lints, formatting and docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy,rustfmt | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Check without any feature | ||
run: cargo clippy --no-default-features -- --deny clippy::all -D warnings | ||
|
||
- name: Verify that docs compile | ||
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features | ||
|
||
- name: Check with all features enabled | ||
run: cargo clippy --all-features -- --deny clippy::all -D warnings | ||
|
||
- name: Run tests | ||
run: cargo test --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
check: | ||
cargo clippy --examples | ||
|
||
run: | ||
cargo run --example ultimate_menu_navigation --features cuicui_dsl | ||
|
||
pre-hook: | ||
cargo fmt --all -- --check | ||
cargo clippy --no-default-features -- --deny clippy::all -D warnings | ||
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features | ||
cargo clippy --all-features -- --deny clippy::all -D warnings | ||
cargo test --all-features | ||
cargo clippy --all-features --features="cuicui_chirp bevy/filesystem_watcher cuicui_layout_bevy_ui/chirp cuicui_layout/reflect" --example ultimate_menu_navigation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters