diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 95b430b9..57e77954 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,24 +23,27 @@ jobs: components: clippy, rustfmt - name: Cargo binstall - run: | - curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash - name: Cargo workspaces - run: | - cargo binstall cargo-workspaces --locked -y + run: cargo binstall cargo-workspaces --locked -y - name: Run tests - run: cargo test --all-features + run: cargo test --workspace --all-features - name: Clippy - run: cargo clippy + run: cargo clippy --workspace --all-features --all-targets + + - name: Unused dependencies + run: | + cargo binstall cargo-machete --locked -y + cargo machete - name: Fmt - run: cargo fmt -- --files-with-diff --check + run: cargo fmt --all -- --files-with-diff --check - name: Publish if: startsWith(github.event.ref, 'refs/tags') env: CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }} - run: cargo ws publish --publish-as-is + run: cargo ws publish --publish-as-is --allow-dirty