Skip to content

Commit

Permalink
ci: change the patch unused checking to be a step...
Browse files Browse the repository at this point in the history
...under workspace job.
  • Loading branch information
iulianbarbu committed Mar 22, 2023
1 parent 6e15096 commit cdc94cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ commands:
when: always
apply-patches:
steps:
- run:
name: Fail if Cargo.lock is previously patched
command: |
[[ -z $(cat Cargo.lock | grep "\[\[patch.unused\]\]") ]]
- run:
name: Patch service
command: |
Expand Down Expand Up @@ -180,6 +175,11 @@ jobs:
- checkout
- restore-cargo-cache
- install-protoc
# Check this to make sure we do not include patched dependencies in
# the Cargo.lock.
- run:
command: |
[[ -z $(cat Cargo.lock | grep "\[\[patch.unused\]\]") ]]
- run: cargo fmt --all --check
# TODO: this is incompatible with workspace inheritance, uncomment when
# https://github.com/DevinR528/cargo-sort/pull/29 is merged
Expand Down

0 comments on commit cdc94cc

Please sign in to comment.