-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for duplicate dependencies (#48)
- Loading branch information
Showing
1 changed file
with
49 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Check Dependencies | ||
|
||
# Ensures that only one workflow task will run at a time. Previous checks, if | ||
# already in process, will get cancelled. Only the latest commit will be allowed | ||
# to run, cancelling any workflows in between. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUST_LOG: info | ||
RUST_BACKTRACE: full | ||
RUST_LIB_BACKTRACE: full | ||
COLORBT_SHOW_HIDDEN: '1' | ||
|
||
jobs: | ||
cargo-deny: | ||
name: Check deny.toml ${{ matrix.checks }} ${{ matrix.features }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
checks: | ||
- bans | ||
- sources | ||
features: ['', '--all-features', '--no-default-features'] | ||
|
||
# Prevent sudden announcement of a new advisory from failing ci: | ||
continue-on-error: ${{ matrix.checks == 'advisories' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3.1.0 | ||
with: | ||
persist-credentials: false | ||
|
||
# this check also runs with optional features off | ||
# so we expect some warnings about "skip tree root was not found" | ||
- name: Check ${{ matrix.checks }} with features ${{ matrix.features }} | ||
uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
command: check ${{ matrix.checks }} | ||
arguments: --workspace ${{ matrix.features }} |