Skip to content

Update HTML2PDF.js to 0.2.1, add a testable and observable Dockerfile #3

Update HTML2PDF.js to 0.2.1, add a testable and observable Dockerfile

Update HTML2PDF.js to 0.2.1, add a testable and observable Dockerfile #3

Workflow file for this run

name: HTML2Print Docker CI
on:
pull_request:
branches: [ "**" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image with PR branch
run: |
docker build . \
--build-arg HTML2PRINT_SOURCE=${{ github.event.pull_request.head.sha }} \
-t html2print:pr-${{ github.event.pull_request.number }}
- name: Run container and test StrictDoc installation
run: |
docker run --name html2print --rm -v "$(pwd):/data" \
--entrypoint="" \
--user "$(id -u):$(id -g)" \
html2print:pr-${{ github.event.pull_request.number }} \
/bin/bash -c "cd tests/integration/01_hello_world && html2pdf print index.html %S/output/index.pdf"