16 lines
391 B
Bash
Executable file
16 lines
391 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
if [ -f "$root/services/core/go.mod" ]; then
|
|
(cd "$root/services/core" && go vet ./...)
|
|
fi
|
|
|
|
if [ -f "$root/apps/web/package.json" ]; then
|
|
(cd "$root/apps/web" && npm run lint --if-present)
|
|
fi
|
|
|
|
if [ -f "$root/apps/mobile/pubspec.yaml" ]; then
|
|
(cd "$root/apps/mobile" && flutter analyze)
|
|
fi
|