name: Smoke test data

on:
  pull_request:
    paths:
      - 'src/ui-ux-pro-max/data/**'
      - 'src/ui-ux-pro-max/scripts/**'
      - 'cli/assets/data/**'
      - 'cli/assets/scripts/**'
      - 'scripts/validate-csv.py'
      - 'scripts/smoke-stacks.sh'
      - 'scripts/smoke-domains.sh'
      - '.github/workflows/smoke-stacks.yml'
  push:
    branches: [main]
  workflow_dispatch:

jobs:
  smoke:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Set up Python
        uses: actions/setup-python@v6
        with:
          python-version: '3.x'

      - name: Validate CSV structure
        run: python3 scripts/validate-csv.py

      - name: Run domain smoke test
        run: bash scripts/smoke-domains.sh

      - name: Run stack smoke test
        run: bash scripts/smoke-stacks.sh
