-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert changes removing cargo.lock and deny.toml checks
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
1 parent
92f3773
commit 11e24d9
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |