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 2c64943 commit bb5e32b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,13 @@ jobs:
</AutomatedInstallation>" > $VERAPDFPATH/install.xml
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"
php -f examples/En16931SimpleWithPdf.php
echo "Running PDF validation"
VERAPDFRESULT=$($VERAPDFPATH/verapdf --format text examples/fullpdf.pdf)
[[ $VERAPDFRESULT == PASS* ]] || { echo "Error: PDF validation not passed" >&2; exit 1; }
echo "Result of validation"
echo $VERAPDFRESULT
[[ $VERAPDFRESULT == PASS* ]] && echo "PDF validation passed" || { echo "Error: PDF validation not passed" >&2; exit 1; }
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down

0 comments on commit bb5e32b

Please sign in to comment.