name: Smoke test stacks

on:
  pull_request:
    paths:
      - 'src/ui-ux-pro-max/data/stacks/**'
      - 'src/ui-ux-pro-max/scripts/**'
      - 'cli/assets/data/stacks/**'
      - 'cli/assets/scripts/**'
      - 'scripts/smoke-stacks.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: Run stack smoke test
        run: bash scripts/smoke-stacks.sh
