slack-q-1770281368/scripts/quality.sh
jordan d1194fd192
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Initialize project from skeleton template
2026-02-05 08:49:28 +00:00

27 lines
600 B
Bash

#!/bin/bash
set -e
echo "Running quality checks for slack-q-1770281368..."
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!"