aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-09-24 19:46:34 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-09-24 19:46:34 +0000
commit6d33048410a446d29e250e8cd89e7f9cab5778b8 (patch)
treec8d6cb1787e923c1981e9a195b2a5846cb1c5363
parent241690cdf62c649dc7eccd43a36c27a03a42dd0d (diff)
downloadao-coverage-6d33048410a446d29e250e8cd89e7f9cab5778b8.tar.gz
ao-coverage-6d33048410a446d29e250e8cd89e7f9cab5778b8.tar.bz2
ao-coverage-6d33048410a446d29e250e8cd89e7f9cab5778b8.zip
Add coverage threshold; copy .env for Drone
-rw-r--r--.drone.yml1
-rw-r--r--package.json10
2 files changed, 10 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml
index 81d51a1..4479ee8 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -6,6 +6,7 @@ steps:
- name: AO Coverage Verify
image: node:lts
commands:
+ - mkdir -p /dist && chown $USER:$USER /dist && cp .env.sample .env
- yarn install --immutable --immutable-cache --check-cache
- yarn run test:coverage
- curl --proto '=https' --tlsv1.2 -sSf https://cov.submelon.dev/sh | sh
diff --git a/package.json b/package.json
index 6c8a302..be20913 100644
--- a/package.json
+++ b/package.json
@@ -72,6 +72,14 @@
],
"roots": [
"src/"
- ]
+ ],
+ "coverageThreshold": {
+ "global": {
+ "branches": 85,
+ "functions": 85,
+ "lines": 85,
+ "statements": 85
+ }
+ }
}
}