Update HTML2PDF.js to 0.2.1, add a testable and observable Dockerfile #7
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: 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 && html2print print --cache-dir output/html2print index.html %S/output/index.pdf" |