Skip to content
Snippets Groups Projects
Commit 3ffa6d33 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

fix reporting and set up yarn and husky correctly

parent 438437bc
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ ! -f ".envrc.local" ]; then
cp .envrc.local.template .envrc.local
echo ".envrc.local was created from template, please add your credentials and customize to your environment"
fi
if command -v nodenv >/dev/null 2>&1; then
# installing correct node version using nodenv
nodenv install -s "$(cat .node-version)"
else
# alternative using nvm
# shellcheck source=/dev/null
. ~/.nvm/nvm.sh
nvm install "$(cat .node-version)"
fi
# loads personal (secret) data from separate env file (not checked in)
source_env_if_exists .envrc.local
type yarn >/dev/null 2>&1 && PATH="$PATH:$(yarn global bin)"
export PATH
......@@ -2,4 +2,3 @@
. "$(dirname "$0")/_/husky.sh"
yarn lint
gitleaks protect --staged -v -c ../.gitleaks.toml
18.14.0
......@@ -126,7 +126,7 @@ export default function (data) {
// none
}
failureCounter.add(requestFailed)
if (requestFailed) {
if (!requestFailed) {
requestCounter.add(1)
requestDuration.add(res.timings.duration)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment