Release/v0.1 prep #6
Workflow file for this run
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: Lint & Format | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| rust-fmt: | |
| name: Rust Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Check formatting (capsule-cli) | |
| working-directory: crates/capsule-cli | |
| run: cargo fmt --all -- --check | |
| - name: Check formatting (capsule-core) | |
| working-directory: crates/capsule-core | |
| run: cargo fmt --all -- --check | |
| rust-clippy: | |
| name: Rust Clippy Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Run clippy (capsule-cli) | |
| working-directory: crates/capsule-cli | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run clippy (capsule-core) | |
| working-directory: crates/capsule-core | |
| run: cargo clippy --all-targets --all-features -- -D warnings |