slack-q-1770281596/scripts/quality.sh
jordan 4e65376da6
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/manual/woodpecker Pipeline was successful
Initialize project from skeleton template
2026-02-05 08:53:17 +00:00

27 lines
600 B
Bash

#!/bin/bash
set -e
echo "Running quality checks for slack-q-1770281596..."
echo ""
# Run golangci-lint for Go code
if command -v golangci-lint &> /dev/null; then
echo "Running golangci-lint..."
golangci-lint run ./services/... ./workers/... ./cli/... ./pkg/... 2>/dev/null || true
fi
# Run tests
echo "Running Go tests..."
go test ./... 2>/dev/null || true
# Run ESLint for apps
for dir in apps/*/; do
if [ -f "${dir}package.json" ]; then
echo "Running lint for $(basename $dir)..."
(cd "$dir" && npm run lint 2>/dev/null) || true
fi
done
echo ""
echo "Quality checks complete!"