Skip to content

Commit

Permalink
Revert changes removing cargo.lock and deny.toml checks
Browse files Browse the repository at this point in the history
Also refactor this to use a more redable and change prone cargo-deny-action. And move this actions out of the clippy-deps job, as this are more related to CI than linting.
  • Loading branch information
gustavovalverde committed Jan 24, 2022
1 parent 92f3773 commit 11e24d9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ jobs:

- uses: Swatinem/rust-cache@v1

# This check makes sure the crate dependency check is accurate
- name: Check Cargo.lock is up to date
uses: actions-rs/[email protected]
with:
command: check
args: --locked --all-features --all-targets

- name: cargo fetch
uses: actions-rs/[email protected]
with:
Expand All @@ -270,3 +277,25 @@ jobs:
with:
command: build
args: --verbose --release

cargo-deny:
name: Check deny.toml crate dependencies and validate licenses
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@v2
with:
persist-credentials: false

- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
args: --all-features --workspace

0 comments on commit 11e24d9

Please sign in to comment.