Add CI test case that runs docker image on a crate (#6)

This commit is contained in:
Johan Andersson
2019-12-14 20:19:29 +01:00
committed by GitHub
parent 1b77d3f4d5
commit 7b48415dc9
6 changed files with 72 additions and 5 deletions
+6 -2
View File
@@ -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
View File
@@ -1,3 +1,2 @@
/target
**/*.rs.bk
Cargo.lock
**/target
**/*.rs.bk
+16
View File
@@ -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"
+13
View File
@@ -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"
+35
View File
@@ -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",
]
View File