mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
replace unused cargo-deny check with a new cargo-deny-licenses job (#13956)
* ci: remove the cargo-deny job It's been broken and disabled for quite a while, and per internal discussion there doesn't seem to be any interest in fixing it and actually using the job output for anything. * ci: add new cargo-deny-licenses job It'll run on all PRs and fail if external dependencies with unsuitable licenses are detected.
This commit is contained in:
@@ -21,27 +21,27 @@ find-fail-ci-phrase:
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
cargo-deny:
|
||||
cargo-deny-licenses:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .nightly-pipeline
|
||||
- .test-refs
|
||||
variables:
|
||||
CARGO_DENY_CMD: "cargo deny --all-features check licenses -c ./scripts/ci/deny.toml"
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
- cargo deny check --hide-inclusion-graph -c ./scripts/ci/deny.toml
|
||||
- $CARGO_DENY_CMD --hide-inclusion-graph
|
||||
- rusty-cachier cache upload
|
||||
after_script:
|
||||
- !reference [.rusty-cachier, after_script]
|
||||
- echo "___The complete log is in the artifacts___"
|
||||
- cargo deny check -c ./scripts/ci/deny.toml 2> deny.log
|
||||
- $CARGO_DENY_CMD 2> deny.log
|
||||
artifacts:
|
||||
name: $CI_COMMIT_SHORT_SHA
|
||||
expire_in: 3 days
|
||||
when: always
|
||||
paths:
|
||||
- deny.log
|
||||
# FIXME: Temporarily allow to fail.
|
||||
allow_failure: true
|
||||
|
||||
cargo-fmt:
|
||||
stage: test
|
||||
|
||||
Reference in New Issue
Block a user