Merge pull request #4 from jjonescz/pdfa-ci

Verify PDF/A in GitHub workflow
This commit is contained in:
Mirek Kratochvil 2022-05-08 12:10:42 +02:00 committed by GitHub
commit df3bbf870f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,3 +32,24 @@ jobs:
path: |
*.pdf
verify:
name: Verify PDF/A
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout verifier
uses: actions/checkout@v2
with:
repository: mff-cuni-cz/cuni-thesis-validator
ref: ba1d9e7be0b70782bf19643eb9a7627ec046dfb7
- name: Build verifier Docker image
run: docker build -t thesis-validator .
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: Thesis
- name: Run verifier
run: >
docker run --rm -i -v $PWD:/thesis thesis-validator verify
/thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0"'