Skip to content

Commit

Permalink
Add cargo-deny workflow job
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
matthiasbeyer committed Sep 12, 2022
1 parent 99a2571 commit 148c361
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ jobs:
command: check


deny:
name: deny
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources

# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}

steps:
- uses: actions/checkout@v3
- name: cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}


fmt:
name: format
runs-on: ubuntu-latest
Expand All @@ -59,6 +79,7 @@ jobs:
if: ${{ success() }}
needs:
- check
- deny
- fmt
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 148c361

Please sign in to comment.