Repository navigation
[Maintenance][CI] Run the PDF scenarios with PDFKiln instead of the archived wkhtmltopdf - #452
Open
Jamalofski wants to merge 2 commits into
Open
Jamalofski wants to merge 2 commits into
Jamalofski wants to merge 2 commits into
Conversation
Author
|
The PDF jobs stopped while building the test application, with "The binary 'wkhtmltopdf' is not executable.": on 2.1, the test application sets no |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The build installs the jammy package of wkhtmltopdf 0.12.6.1-2 on
ubuntu-latest; wkhtmltopdf is archived, with no release since 2020. This installs PDFKiln instead, with thepdfkiln/setupaction: a drop-in replacement for wkhtmltopdf 0.12.6, same command line, rendering with a current Chromium (MIT, https://github.com/pdfkiln/pdfkiln). The action puts the latest release in the tool cache, checked against its SHA256SUMS, and the next step pointsWKHTMLTOPDF_PATHat itswkhtmltopdf(the test application's.envgives/usr/local/bin/wkhtmltopdf). The matrix label becomespdfkiln; the jobs without PDF generation are unchanged.Tested locally with the test application built as
SyliusLabs/BuildTestAppActionbuilds it (Sylius 2.2, Symfony 7.4, PostgreSQL 16, front assets built with Node 24), on 2.3, whose build has the same steps: the@pdf_enabledscenarios pass, 5 of 5, with the legacy PDF generation on and off, with PDFKiln 1.5.1 installed by the action as with wkhtmltox 0.12.6.1; the invoice keeps its page and its text.Disclosure: I maintain PDFKiln.