Skip to content

Commit

Permalink
[INFR] Updated workflows to use new PDFBuilder-Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 29, 2024
1 parent 416d1c4 commit b6df5e9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,17 @@ jobs:
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"
php -f examples/En16931SimpleWithPdf.php
echo "Creating test PDF (1)"
php -f examples/02_ZugferdDocumentPdfBuilder_EN16931.php
echo "Running PDF validation"
VERAPDFRESULT=$($VERAPDFPATH/verapdf --format text examples/fullpdf.pdf)
VERAPDFRESULT=$($VERAPDFPATH/verapdf --format text --flavour 3b examples/02_ZugferdDocumentPdfBuilder_PrintLayout_Merged.pdf)
echo "Result of validation"
echo $VERAPDFRESULT
[[ $VERAPDFRESULT == PASS* ]] && echo "PDF validation passed" || { echo "Error: PDF validation not passed" >&2; exit 1; }
echo "Creating test PDF (2)"
php -f examples/02_ZugferdDocumentPdfBuilder_XRECHNUNG.php
echo "Running PDF validation"
VERAPDFRESULT=$($VERAPDFPATH/verapdf --format text --flavour 3b examples/02_ZugferdDocumentPdfBuilder_PrintLayout_Merged.pdf)
echo "Result of validation"
echo $VERAPDFRESULT
[[ $VERAPDFRESULT == PASS* ]] && echo "PDF validation passed" || { echo "Error: PDF validation not passed" >&2; exit 1; }
Expand Down

0 comments on commit b6df5e9

Please sign in to comment.