diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ffd5754..9f10a1f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,10 @@ jobs: with: go-version: stable + - name: Quick Sanity Check + shell: bash + run: go test -v ./... + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cbfc9f8..52c4e2a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -43,10 +43,11 @@ jobs: if: matrix.os == 'windows-latest' run: | ./ctx.exe . - $files = Get-Clipboard -Format FileDropList - if ($files) { - Write-Host "Clipboard contains: $files" - if ($files.Name -contains "ctx.txt") { exit 0 } + Add-Type -AssemblyName System.Windows.Forms + $files = [System.Windows.Forms.Clipboard]::GetFileDropList() + if ($files.Contains("$PWD\ctx.txt")) { + Write-Host "Success: Clipboard contains ctx.txt" + exit 0 } - Write-Error "Clipboard did not contain ctx.txt" + Write-Error "Clipboard did not contain ctx.txt. Found: $files" exit 1