mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 19:31:45 +03:00
13 lines
237 B
Plaintext
13 lines
237 B
Plaintext
|
#!/bin/bash
|
||
|
set -e;
|
||
|
git diff --cached --name-only | grep -q '.js$' && make lint-js;
|
||
|
|
||
|
found=0
|
||
|
git diff --cached --name-only | grep -q '.go$' && found=1
|
||
|
if [ $found == 1 ]; then
|
||
|
make lint-go || exit 1
|
||
|
go test ./... || exit 1
|
||
|
fi
|
||
|
|
||
|
exit 0;
|