From ee685be0fa7ed997379fa36202a5ef1f43537ef2 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Sun, 20 Aug 2023 21:36:43 +0200 Subject: [PATCH] refactor(.github): run cargo-deny on every pull request Allows us to make `cargo-deny` job required. See original discussion https://github.com/libp2p/rust-libp2p/pull/4328#issuecomment-1684333461. --- .github/workflows/cargo-deny-pr.yml | 28 ---------------------------- .github/workflows/ci.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/cargo-deny-pr.yml diff --git a/.github/workflows/cargo-deny-pr.yml b/.github/workflows/cargo-deny-pr.yml deleted file mode 100644 index c9c0e7d447b..00000000000 --- a/.github/workflows/cargo-deny-pr.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: cargo deny - -on: - push: - paths: - - '**/Cargo.toml' - pull_request: - paths: - - '**/Cargo.toml' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - cargo-deny: - runs-on: ubuntu-latest - strategy: - matrix: - checks: - - advisories - - bans licenses sources - - steps: - - uses: actions/checkout@v3 - - uses: EmbarkStudios/cargo-deny-action@v1 - with: - command: check ${{ matrix.checks }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 470016d68ef..cb02a549da1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -354,3 +354,16 @@ jobs: - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@578b235f6e5f613f7727f1c17bd3305b4d4d4e1f # v2.6.1 - run: cargo metadata --locked --format-version=1 > /dev/null + + cargo-deny: + runs-on: ubuntu-latest + strategy: + matrix: + checks: + - advisories + - bans licenses sources + steps: + - uses: actions/checkout@v3 + - uses: EmbarkStudios/cargo-deny-action@v1 + with: + command: check ${{ matrix.checks }}