bachelor-thesis/.github/workflows/main.yml
oleg.petruny 42c28c4581
Some checks failed
CI / Install node (push) Successful in 3s
CI / Build thesis PDFs and push them to pages (push) Failing after 2s
CI / Build thesis PDFs (push) Failing after 2s
CI / Verify PDF/A (push) Has been skipped
revert 9947badf25
revert Update .github/workflows/main.yml
2025-02-12 18:24:35 +00:00

51 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
dep:
name: Install node
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-versoon: 18
build:
name: Build thesis PDFs
runs-on: ubuntu-latest
needs: dep
container: { image: 'aergus/latex' }
steps:
- uses: https://gitea.com/ScMi1/checkout@v1
- name: Build the thesis
run: latexmk thesis && latexmk abstract-cz && latexmk abstract-en
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Thesis
path: |
*.pdf
verify:
name: Verify PDF/A
runs-on: ubuntu-latest
needs: build
container: { image: 'ghcr.io/mff-cuni-cz/cuni-thesis-validator' }
steps:
- name: Install nodejs
run: apt-get update && apt-get install -y nodejs && node --version
- name: Get PDFs
uses: actions/download-artifact@v2
- name: Run VeraPDF
run: verify Thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0" failedJobs="0"'