Add CI test case that runs docker image on a crate (#6)
This commit is contained in:
@@ -6,5 +6,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Build the Docker image
|
||||
run: docker build .
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t test-cargo-deny .
|
||||
|
||||
- name: Run Docker image
|
||||
run: docker run -v ${PWD}/test:/test --workdir /test test-cargo-deny check
|
||||
|
||||
+2
-3
@@ -1,3 +1,2 @@
|
||||
/target
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
**/target
|
||||
**/*.rs.bk
|
||||
Generated
+16
@@ -0,0 +1,16 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "test-crate"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[metadata]
|
||||
"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||
@@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "test-crate"
|
||||
version = "0.1.0"
|
||||
authors = ["Embark <[email protected]>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
lazy_static = "1.0"
|
||||
@@ -0,0 +1,35 @@
|
||||
[bans]
|
||||
multiple-versions = "deny"
|
||||
deny = [
|
||||
{ name = "openssl" },
|
||||
|
||||
# deprecated/abandoned
|
||||
{ name = "term" }, # term is not fully maintained, and termcolor is replacing it
|
||||
{ name = "quickersort" }, # explicitly deprecated
|
||||
{ name = "build-helper" }, # abandoned, and doesn't add much value
|
||||
{ name = "app_dirs" }, # abandoned, use app_dirs2 instead
|
||||
{ name = "colored" }, # not actively maintained? slow to merge update fixes in and has lots of old dependencies
|
||||
{ name = "floating-duration"}, # not needed with Rust 1.38, and very few users and commits
|
||||
{ name = "mopa"}, # abandoned, have not been updated for 4 years
|
||||
]
|
||||
skip = [
|
||||
]
|
||||
skip-tree = [
|
||||
]
|
||||
|
||||
[licenses]
|
||||
unlicensed = "deny"
|
||||
allow-osi-fsf-free = "neither"
|
||||
# We want really high confidence when inferring licenses from text
|
||||
confidence-threshold = 0.92
|
||||
allow = [
|
||||
"LicenseRef-Embark-Proprietary",
|
||||
"Apache-2.0",
|
||||
"Apache-2.0 WITH LLVM-exception",
|
||||
"BSD-2-Clause",
|
||||
"BSD-3-Clause",
|
||||
"ISC",
|
||||
"MIT",
|
||||
"MPL-2.0",
|
||||
"Zlib",
|
||||
]
|
||||
Reference in New Issue
Block a user