fix: keep delete approval state and add checkbox thumbnail confirmation #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PowerShell CI | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| jobs: | |
| validate: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate PowerShell syntax | |
| shell: pwsh | |
| run: | | |
| $errors = @() | |
| $tokens = @() | |
| $null = [System.Management.Automation.Language.Parser]::ParseFile("DuplicateFinder.ps1", [ref]$tokens, [ref]$errors) | |
| if ($errors.Count -gt 0) { | |
| $errors | ForEach-Object { Write-Error $_ } | |
| throw "PowerShell parse validation failed." | |
| } | |
| - name: Verify key documentation files | |
| shell: pwsh | |
| run: | | |
| $required = @( | |
| "README.md", | |
| "LICENSE", | |
| "CONTRIBUTING.md", | |
| "CODE_OF_CONDUCT.md", | |
| "SECURITY.md" | |
| ) | |
| foreach ($file in $required) { | |
| if (-not (Test-Path -LiteralPath $file)) { | |
| throw "Missing required file: $file" | |
| } | |
| } |