From 222b3b5e1ba0d120143409b2790b292174862a9c Mon Sep 17 00:00:00 2001 From: HorstOeko Date: Wed, 4 Dec 2024 06:14:30 +0100 Subject: [PATCH] [INFR] Fix veraPDF validation in CI workflow --- .github/workflows/build.ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.ci.yml b/.github/workflows/build.ci.yml index 7f9b6b19..bd18d67b 100644 --- a/.github/workflows/build.ci.yml +++ b/.github/workflows/build.ci.yml @@ -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 " @@ -173,6 +174,7 @@ jobs: " > $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" @@ -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