summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-04-26 05:36:54 +0000
committerLars Wirzenius <liw@liw.fi>2023-04-26 05:36:54 +0000
commit070a123b382a8cbc9903684d415e738cee7e5c67 (patch)
tree7fb4a23cd909d4d084921d37a8a98b9655f69c05
parentb18280d6f50db17f63838cc365ac2edb89894454 (diff)
parent258090d55867f8db60556f74ea47f04b1c63c4a3 (diff)
downloadhtml-page-070a123b382a8cbc9903684d415e738cee7e5c67.tar.gz
Merge branch 'checks' into 'main'
make it easier to QA in CI See merge request larswirzenius/html-page!1
-rwxr-xr-xcheck8
-rw-r--r--deny.toml23
2 files changed, 31 insertions, 0 deletions
diff --git a/check b/check
new file mode 100755
index 0000000..f9133ed
--- /dev/null
+++ b/check
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -euo pipefail
+
+cargo clippy -q -- --deny=clippy::all
+cargo build -q --all-targets
+cargo test -q
+cargo deny check
diff --git a/deny.toml b/deny.toml
new file mode 100644
index 0000000..2c7cebb
--- /dev/null
+++ b/deny.toml
@@ -0,0 +1,23 @@
+[advisories]
+vulnerability = "deny"
+unmaintained = "deny"
+unsound = "deny"
+yanked = "deny"
+notice = "deny"
+severity-threshold = "low"
+
+[licenses]
+unlicensed = "deny"
+allow = [
+ "MIT",
+ "MIT-0",
+]
+copyleft = "deny"
+allow-osi-fsf-free = "neither"
+default = "deny"
+confidence-threshold = 0.8
+
+[bans]
+multiple-versions = "deny"
+wildcards = "deny"
+highlight = "all"