name: Validate with HACS

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
  workflow_dispatch:

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      # 1. HACS-Validierung
      # Prüft hacs.json und Struktur
      - name: Run HACS validation
        uses: hacs/action@main
        with:
          category: plugin
