Skip to content

Commit

Permalink
add print to debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
kerenr-jfrog committed Nov 6, 2024
1 parent 6246456 commit 0f2bf4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ jobs:
run: |
$vsixPath = "JFrogVSExtension/bin/Release/JfrogVSExtension.vsix"
$pdbExists = $false
$fileName = ""
# Check if the .vsix file contains the PDB file
if (Test-Path $vsixPath) {
$zipContent = [System.IO.Compression.ZipFile]::OpenRead($vsixPath)
foreach ($entry in $zipContent.Entries) {
if ($entry.FullName -like "*JfrogVSExtension.pdb") {
$pdbExists = $true
$fileName = entry.FullName
break
}
}
Expand All @@ -69,11 +71,12 @@ jobs:
}
if ($pdbExists) {
Write-Host "PDB file exists in VSIX. Please check your project settings."
Write-Host "PDB file exists in VSIX. file name = $fileName Please check your project settings."
exit 1 # Fail the workflow if the PDB file is found
} else {
Write-Host "PDB file not found in VSIX. Build is clean."
}
shell: pwsh
# Upload vsix and unit test as artifacts for other workflows usage
- name: Upload vsix artifacts
Expand Down

0 comments on commit 0f2bf4d

Please sign in to comment.