Feat/herziening over index procesplaat #237
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.13" | |
| - uses: pre-commit/action@v3.0.1 | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| HUGO_VERSION: 0.162.1 | |
| HTMLTEST_VERSION: 0.17.0 | |
| TZ: Europe/Amsterdam | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: stable | |
| cache: false | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: ${{ env.HUGO_VERSION }} | |
| extended: true | |
| - name: Install htmltest | |
| run: | | |
| curl -sLJO "https://github.com/wjdp/htmltest/releases/download/v${HTMLTEST_VERSION}/htmltest_${HTMLTEST_VERSION}_linux_amd64.tar.gz" | |
| mkdir -p "${HOME}/.local/htmltest" | |
| tar -C "${HOME}/.local/htmltest" -xf "htmltest_${HTMLTEST_VERSION}_linux_amd64.tar.gz" | |
| rm "htmltest_${HTMLTEST_VERSION}_linux_amd64.tar.gz" | |
| echo "${HOME}/.local/htmltest" >> "${GITHUB_PATH}" | |
| - name: Verify installations | |
| run: | | |
| hugo version | |
| htmltest --version | |
| - name: Determine version from git tag | |
| # Alleen een echte tag exporteren; geen tag → hugo.yaml-default (geen hash). | |
| run: | | |
| V="$(git describe --tags --abbrev=0 2>/dev/null || true)" | |
| if [ -n "$V" ]; then echo "HUGO_PARAMS_VERSIE=$V" >> "$GITHUB_ENV"; fi | |
| - name: Build site | |
| env: | |
| HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache | |
| run: hugo --gc --minify --logLevel warning | |
| - name: Setup Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: "22" | |
| - name: PDF-export tests (converter + doc-definition + render-smoke) | |
| # Draait ná de Hugo-build: de tests lezen de gegenereerde pdf.json-endpoints. | |
| run: | | |
| npm ci | |
| npm test | |
| npm run smoke:pdf | |
| - name: Test links | |
| run: hugo --minify --quiet --baseURL / --destination .htmltest/public && htmltest |