Merge pull request #16 from stlab/sean-parent/begin-crate #106
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Build workspace (excluding begin app) | |
| run: cargo build --workspace --exclude begin --verbose | |
| - name: Check begin app (renderer-agnostic) | |
| run: cargo check -p begin --no-default-features | |
| - name: Run tests for workspace (excluding begin app) | |
| run: cargo test --workspace --exclude begin --verbose -- --nocapture | |
| - name: Clippy workspace (excluding begin app) | |
| run: cargo clippy --workspace --exclude begin -- -D warnings | |
| - name: Clippy begin app (renderer-agnostic) | |
| run: cargo clippy -p begin --no-default-features -- -D warnings |