diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 79251f51..de801e19 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ main ] + branches: [ master ] pull_request: - branches: [ main ] + branches: [ master ] env: CARGO_TERM_COLOR: always @@ -16,7 +16,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Build and test + - run: rustup component add rustfmt + - run: rustup component add clippy + - run: cargo build --all-features + - run: cargo test --all-features + - run: cargo fmt --all -- --check + - run: cargo clippy --all-features --all-targets -- --deny warnings