2020-12-14 10:12:57 -07:00
|
|
|
#!/bin/sh
|
2020-09-09 04:03:27 -07:00
|
|
|
|
2020-12-14 10:12:57 -07:00
|
|
|
set -e -f -u
|
2020-07-15 02:49:08 -07:00
|
|
|
|
2021-01-28 04:02:38 -07:00
|
|
|
if [ "$(git diff --cached --name-only -- 'client/*.js')" ]
|
2020-12-14 10:12:57 -07:00
|
|
|
then
|
|
|
|
make js-lint js-test
|
2020-07-15 02:49:08 -07:00
|
|
|
fi
|
|
|
|
|
2021-01-28 04:02:38 -07:00
|
|
|
if [ "$(git diff --cached --name-only -- 'client2/*.js' 'client2/*.ts' 'client2/*.tsx')" ]
|
|
|
|
then
|
|
|
|
make js-beta-lint js-beta-test
|
|
|
|
fi
|
|
|
|
|
2020-12-21 07:48:07 -07:00
|
|
|
if [ "$(git diff --cached --name-only -- '*.go' 'go.mod')" ]
|
2020-12-14 10:12:57 -07:00
|
|
|
then
|
|
|
|
make go-lint go-test
|
|
|
|
fi
|
2021-01-14 03:48:52 -07:00
|
|
|
|
|
|
|
if [ "$(git diff --cached --name-only -- './openapi/openapi.yaml')" ]
|
|
|
|
then
|
|
|
|
make openapi-lint
|
|
|
|
fi
|