From aa69ed1e46dd61fbf9d73399396a4db4dd527431 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:06:46 +0100 Subject: [PATCH] ci: move deny to test (#9524) --- .github/workflows/deny.yml | 26 -------------------------- .github/workflows/test.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/deny.yml diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml deleted file mode 100644 index e8e4d5b84b1e..000000000000 --- a/.github/workflows/deny.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: deny - -on: - push: - branches: [master] - paths: [Cargo.lock, deny.toml] - pull_request: - branches: [master] - paths: [Cargo.lock, deny.toml] - -env: - CARGO_TERM_COLOR: always - -jobs: - cargo-deny: - name: cargo deny check - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v1 - with: - command: check all - # Clear out arguments to not pass `--all-features` to `cargo deny`. - # many crates have an `openssl` feature which enables banned dependencies - arguments: "" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5a2eabb07c0..3ca0daa177ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -110,6 +110,13 @@ jobs: cache-on-failure: true - run: cargo hack check + deny: + uses: ithacaxyz/ci/.github/workflows/deny.yml@main + with: + # Clear out arguments to not pass `--all-features` to `cargo deny`. + # Many crates have an `openssl` feature which enables banned dependencies. + deny-flags: "" + ci-success: runs-on: ubuntu-latest if: always() @@ -122,6 +129,7 @@ jobs: - rustfmt - forge-fmt - crate-checks + - deny timeout-minutes: 30 steps: - name: Decide whether the needed jobs succeeded or failed