add(bms): Deal with comment/non-command, tested #245
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: Rust | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup rustfmt and clippy | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Build crate | |
run: cargo build --verbose | |
- name: Clippy Check | |
run: cargo clippy --verbose | |
- name: Test crate | |
run: cargo test --verbose | |
- if: matrix.os == 'ubuntu-latest' | |
name: cargo-deny | |
uses: EmbarkStudios/[email protected] |