Skip to content

Commit

Permalink
Merge pull request #27 from Rigidity/fix-ci
Browse files Browse the repository at this point in the history
Update CI to include workspace
  • Loading branch information
Rigidity authored May 21, 2024
2 parents a72eead + be3d479 commit 1ddb8bc
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1ddb8bc

Please sign in to comment.