Skip to content

Commit

Permalink
ci: check whether Cargo.lock...
Browse files Browse the repository at this point in the history
...is shipped already with patched dependencies.
  • Loading branch information
iulianbarbu committed Mar 22, 2023
1 parent abd17fe commit ea7e0a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ commands:
when: always
apply-patches:
steps:
- run:
name: Fail if service is previously patched
command: |
[[ -z $(cat Cargo.lock | grep "\[\[patch.unused\]\]") ]]
- run:
name: Patch service
command: |
Expand Down Expand Up @@ -241,6 +246,10 @@ jobs:
set +o pipefail
(cargo test --package << parameters.crate >> --all-features --test '*' -- --list 2>&1 | grep -q "no test target matches pattern") && echo "nothing to test" || cargo test --package << parameters.crate >> --all-features --test '*' -- --nocapture
- save-cargo-cache
cargo-patched-deps-check:
executor: docker-rust
steps:

e2e-test:
executor: image-ubuntu
steps:
Expand Down

0 comments on commit ea7e0a8

Please sign in to comment.