diff --git a/build/Makefile b/build/Makefile index c9531eaf01..9958023610 100644 --- a/build/Makefile +++ b/build/Makefile @@ -48,6 +48,8 @@ version: # Run all tests test: ensure-build-image + docker run --rm $(common_rust_args) \ + --entrypoint=cargo $(BUILD_IMAGE_TAG) deny check docker run --rm $(common_rust_args) \ --entrypoint=cargo $(BUILD_IMAGE_TAG) clippy --tests -- -D warnings docker run --rm $(common_rust_args) \ diff --git a/build/README.md b/build/README.md index fad85186cd..c23e51350b 100644 --- a/build/README.md +++ b/build/README.md @@ -50,6 +50,10 @@ To run our external documentation tests: `cargo +nightly test --doc` +To test dependency licences and security advisories: + +`cargo deny check` + ### Developing with Make + Docker There are a few reasons you may want to use the [Make](https://www.gnu.org/software/make/) diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index 3a37b2fa32..b39694255b 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -33,6 +33,7 @@ RUN set -eux && \ rustup toolchain install nightly && \ cargo install cross && \ cargo install cargo-about && \ + cargo install --locked cargo-deny && \ rustup --version && \ cargo --version && \ rustc --version && \