#!/bin/bash

handle_failure() {
  echo "❌ Error: $1 failed!"
  exit 1
}

echo "🔍 Running lint checks..."
task lint || handle_failure "lint"

echo "🧪 Running test coverage..."
task test-coverage || handle_failure "test-coverage"

echo "✅ All checks passed successfully!"
