0.12 Release prep #99
Workflow file for this run
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
name: Continous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
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: Install alsa and udev | |
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev | |
- name: Check clippy | |
run: cargo clippy --workspace -- --deny clippy::all | |
- name: Check no default features cargo cuicui_layout_bevy_ui | |
run: cargo clippy --no-default-features --package cuicui_layout_bevy_ui -- --deny clippy::all | |
- name: Check no default features cargo cuicui_layout_bevy_sprite | |
run: cargo clippy --no-default-features --package cuicui_layout_bevy_sprite -- --deny clippy::all | |
- name: Check no default features cargo cuicui_layout | |
run: cargo clippy --no-default-features --package cuicui_layout -- --deny clippy::all | |
tests: | |
name: Compile and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install alsa and udev | |
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev | |
- name: Run cuicui_dsl test | |
run: cargo test --package cuicui_dsl --features test_and_doc | |
- name: Run other tests | |
run: cargo test --workspace --exclude cuicui_dsl |