Skip to content

Commit 6ac87dc

Browse files
committed
chore(ci): add cargo deny check to CI
This fetches a shared deny.toml from the QA repo before running the cargo deny GH Action.
1 parent 5ddf63c commit 6ac87dc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/pr.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,22 @@ jobs:
107107
override: true
108108

109109
# Install and run cargo udeps to find unused cargo dependencies
110-
- name: cargo-udeps duplicate dependency check
110+
- name: cargo-udeps unused dependency check
111111
run: |
112112
cargo install cargo-udeps --locked
113113
cargo +nightly udeps --all-targets
114114
115+
cargo-deny:
116+
runs-on: ubuntu-latest
117+
steps:
118+
- uses: actions/checkout@v2
119+
120+
# wget the shared deny.toml file from the QA repo
121+
- shell: bash
122+
run: wget https://raw.githubusercontent.com/maidsafe/QA/master/misc-scripts/deny.toml
123+
124+
- uses: EmbarkStudios/cargo-deny-action@v1
125+
115126
test:
116127
name: Test
117128
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)