ef178610d6
Merge in DNS/adguard-home from cleanup to master Squashed commit of the following: commit a62e28cd35fefe45e228d1762aa2c148204c3065 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Dec 9 12:24:34 2020 +0300 all: more cleanup commit 04dc2220483fa3216b138b7b848b818dcc2a393a Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Dec 8 20:52:28 2020 +0300 all: cleanup
19 lines
354 B
Bash
Executable File
19 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
set -e;
|
|
|
|
found=0
|
|
git diff --cached --name-only | grep -q '.js$' && found=1
|
|
if [ $found == 1 ]; then
|
|
npm --prefix client run lint || exit 1
|
|
npm run test --prefix client || exit 1
|
|
fi
|
|
|
|
found=0
|
|
git diff --cached --name-only | grep -q '.go$' && found=1
|
|
if [ $found == 1 ]; then
|
|
make go-lint || exit 1
|
|
go test ./... || exit 1
|
|
fi
|
|
|
|
exit 0;
|