From 6e847d9e3fc72e7013408ac8aec98044759a1fc5 Mon Sep 17 00:00:00 2001 From: Sahara Yousuf Date: Fri, 22 Mar 2024 11:26:59 -0500 Subject: [PATCH] Call DocToImages sample with necessary command line arguments - The DocToImages sample was failing to run in CI because it requires some additional command line arguments. Let's add some logic to the "Run samples" step to run the DocToImages sample with th appropriate arguments. --- .github/workflows/test-net-framework-samples.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-net-framework-samples.yml b/.github/workflows/test-net-framework-samples.yml index d3cd0c3..5e1fbd7 100644 --- a/.github/workflows/test-net-framework-samples.yml +++ b/.github/workflows/test-net-framework-samples.yml @@ -149,7 +149,11 @@ jobs: sample_name=$(basename "$PWD") if [ "$sample_name" != "PrintPDF" ] && [ "$sample_name" != "PrintPDFGUI" ] && [ "$sample_name" != "DisplayPDF" ] && [ "$sample_name" != "DotNETViewer" ] && [ "$sample_name" != "DotNETViewerComponent" ] && [ "$sample_name" != "PDFObjectExplorer" ]; then - bin/Release/$sample_name.exe + if [ "$sample_name" == "DocToImages" ]; then + bin/Release/$sample_name.exe -format=png $HOME/.nuget/packages/adobe.pdf.library.sampleinput/1.0.0/build/Resources/Sample_Input/ducky.pdf + else + bin/Release/$sample_name.exe + fi else echo "$sample_name will not be run due to GitHub runner limitations." fi