name: Installer Smoke

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

permissions:
  contents: read

jobs:
  smoke-unix:
    name: Smoke install.sh (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-22.04, macos-latest]
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Run installer dry-run
        run: bash scripts/install.sh --dry-run --verbose

  # smoke-windows:
  #   name: Smoke install.ps1 (windows-latest)
  #   runs-on: windows-latest
  #   steps:
  #     - name: Checkout
  #       uses: actions/checkout@v4

  #     - name: Run installer dry-run
  #       shell: pwsh
  #       run: ./scripts/install.ps1 -DryRun
