Skip to content

Commit

Permalink
[INFR] Fix veraPDF validation in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 4, 2024
1 parent bb5e32b commit 222b3b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ jobs:
wget $VERAPDFURL -O $VERAPDFPATH/$VERAPDFZIPFILENAME
unzip -j $VERAPDFPATH/$VERAPDFZIPFILENAME -d $VERAPDFPATH
rm -f $VERAPDFPATH/$VERAPDFZIPFILENAME
echo "Creating veraPDF install config"
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>
<AutomatedInstallation langpack=\"eng\">
<com.izforge.izpack.panels.htmlhello.HTMLHelloPanel id=\"welcome\"/>
Expand All @@ -173,6 +174,7 @@ jobs:
<com.izforge.izpack.panels.install.InstallPanel id=\"install\"/>
<com.izforge.izpack.panels.finish.FinishPanel id=\"finish\"/>
</AutomatedInstallation>" > $VERAPDFPATH/install.xml
echo "Installing veraPDF"
VERAPDFINSTALLJAR=$(find $VERAPDFPATH -type f -name "*.jar" | head -n 1); [[ -z "$VERAPDFINSTALLJAR" ]] && { echo "No veraPDF installer found" >&2; exit 1; } || echo "veraPDF installer fount at $VERAPDFINSTALLJAR"
java -jar $VERAPDFINSTALLJAR $VERAPDFPATH/install.xml
echo "Creating test PDF"
Expand All @@ -182,6 +184,8 @@ jobs:
echo "Result of validation"
echo $VERAPDFRESULT
[[ $VERAPDFRESULT == PASS* ]] && echo "PDF validation passed" || { echo "Error: PDF validation not passed" >&2; exit 1; }
echo "Removing veraPDF"
rm -rf $VERAPDFPATH
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down

0 comments on commit 222b3b5

Please sign in to comment.