Skip to content

Commit

Permalink
refactor(.github): run cargo-deny on every pull request
Browse files Browse the repository at this point in the history
Allows us to make `cargo-deny` job required.

See original discussion #4328 (comment).

Pull-Request: #4352.
  • Loading branch information
mxinden authored Aug 21, 2023
1 parent 608e2db commit b617e97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/cargo-deny-pr.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b617e97

Please sign in to comment.