Skip to content

Commit 868947d

Browse files
committed
Add Ghostscript and PDF setup
1 parent 38bad2b commit 868947d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/testing.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ jobs:
109109
with:
110110
files: "composer.json, behat.yml"
111111

112+
- name: Install Ghostscript
113+
if: steps.check_files.outputs.files_exists == 'true'
114+
run: |
115+
sudo apt-get update
116+
sudo apt-get install ghostscript -y
117+
112118
- name: Set up PHP envirnoment
113119
if: steps.check_files.outputs.files_exists == 'true'
114120
uses: shivammathur/setup-php@v2
@@ -133,6 +139,11 @@ jobs:
133139
restore-keys: |
134140
${{ runner.os }}-composer-
135141
142+
- name: Change ImageMagick policy to allow pdf->png conversion.
143+
if: steps.check_files.outputs.files_exists == 'true'
144+
run: |
145+
sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml
146+
136147
- name: Install dependencies
137148
if: steps.check_files.outputs.files_exists == 'true'
138149
run: COMPOSER_ROOT_VERSION=dev-master composer install --prefer-dist --no-progress --no-suggest

0 commit comments

Comments
 (0)