Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
b7552d6
update most of the code
sebastianMindee Oct 8, 2026
8334c2f
fix tests etc.
sebastianMindee Oct 8, 2026
bd5685b
fix deps and update bernie
sebastianMindee Oct 8, 2026
9223992
fix stuff
sebastianMindee Oct 8, 2026
ccab356
fix action lint
sebastianMindee Oct 8, 2026
0652e7f
fix clang issue
sebastianMindee Oct 8, 2026
f595ee7
fix static analysis
sebastianMindee Oct 8, 2026
28f2a41
fix tests
sebastianMindee Oct 15, 2026
8edc51b
fix tests
sebastianMindee Oct 15, 2026
969b12d
update old syntaxes
sebastianMindee Oct 16, 2026
776c2b8
fix tests
sebastianMindee Oct 19, 2026
671209c
fix typo in job
sebastianMindee Oct 19, 2026
a908a01
move install script to tools folder
sebastianMindee Oct 19, 2026
58ccd95
fix functional tests
sebastianMindee Oct 19, 2026
b7c44a1
lower test threshold
sebastianMindee Oct 19, 2026
41e3c14
:sparkles: add REAL bernard-ledit to composer
sebastianMindee Oct 26, 2026
aab450e
fix invalid workflow
sebastianMindee Oct 26, 2026
aa3091e
fix tests
sebastianMindee Oct 26, 2026
d76485e
fix install script
sebastianMindee Oct 26, 2026
eef0b34
fix install script... again
sebastianMindee Oct 26, 2026
917bf2a
fix macOS tests
sebastianMindee Oct 26, 2026
4b0212e
fix macos CI?
sebastianMindee Oct 26, 2026
a7fbae7
whoops
sebastianMindee Oct 26, 2026
62ccad0
cmon srsly??
sebastianMindee Oct 26, 2026
448b541
fix image extractor invalid name and add missing unit tests
sebastianMindee Oct 27, 2026
d2e34f8
fix windows Ci
sebastianMindee Oct 27, 2026
597f286
fix test for windows
sebastianMindee Oct 27, 2026
5916361
loosen sleep mixen test threshold for macOS
sebastianMindee Oct 27, 2026
4ee93f8
update grossly outdated CONTRIBUTING.md
sebastianMindee Oct 27, 2026
6abd980
fix crops
sebastianMindee Oct 27, 2026
a2b467f
UNLEASH BERNIE
sebastianMindee Oct 27, 2026
23ba5bf
Refactor index handling in Crop.php
sebastianMindee Oct 27, 2026
ad5f06d
hard-pin bernie
sebastianMindee Oct 27, 2026
cc8a6c0
fix a bunch of issues
sebastianMindee Oct 27, 2026
63b65dd
uncaght valueerror
sebastianMindee Oct 27, 2026
d01727b
fixes
sebastianMindee Oct 28, 2026
53f46f7
fix nits
sebastianMindee Oct 28, 2026
dac5465
fixes last nits
sebastianMindee Oct 28, 2026
0566ebc
ignore bernardledit errors
sebastianMindee Oct 28, 2026
0558c5b
simplify CI
sebastianMindee Oct 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/_static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
php-version: [ "8.1", "8.5" ] # Deprecation warnings only show starting PHP 8.5
steps:
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand Down
107 changes: 52 additions & 55 deletions .github/workflows/_test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,67 +33,60 @@ jobs:
php-version:
- 8.1
- 8.5

runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Install Ghostscript
run: |
sudo apt-get update
sudo apt-get install -y ghostscript

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, fileinfo, json, imagick
extensions: curl, fileinfo, json
tools: pie

- name: Install bernard-ledit extension
run: bash tools/install-bernard-ledit.sh

- name: Install dependencies
uses: ramsey/composer-install@v3

- name: Change ImageMagick security policy on Ubuntu
run: |
DQT='"'
SRC="rights=${DQT}none${DQT} pattern=${DQT}PDF${DQT}"
RPL="rights=${DQT}read|write${DQT} pattern=${DQT}PDF${DQT}"
sudo sed -i "s/$SRC/$RPL/" /etc/ImageMagick-6/policy.xml
- name: Integration testing with phpunit
run: ./vendor/bin/phpunit -c tests/functional.xml

- name: Unit testing with phpunit
run: |
./vendor/bin/phpunit -c tests/functional.xml
integration-tests-macos:
name: Run Integration Tests on MacOS
timeout-minutes: 30
strategy:
max-parallel: 2
matrix:
php-version:
- 8.1
- 8.5
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, fileinfo, json
tools: pie

- name: Install bernard-ledit extension
run: bash tools/install-bernard-ledit.sh

- name: Install dependencies
uses: ramsey/composer-install@v3

- name: Integration testing with phpunit
run: ./vendor/bin/phpunit -c tests/functional.xml

# MacOS testing disabled because of capricious GS/ImageMagick/Homebrew behaviors
# integration-tests-macos:
# name: Run Integration Tests on MacOS
# timeout-minutes: 30
# strategy:
# max-parallel: 2
# matrix:
# php-version:
# - 8.1
# - 8.5
# runs-on: "macos-latest"
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Set up php ${{ matrix.php-version }}
# uses: shivammathur/setup-php@v2
# env:
# phpts: zts
# with:
# php-version: ${{ matrix.php-version }}
# extensions: curl, fileinfo, json, imagick
# - name: Install ImageMagick
# run: |
# brew update
# brew install imagemagick
# - uses: ramsey/composer-install@v2
# - name: Unit testing with phpunit
# run: |
# ./vendor/bin/phpunit -c tests/functional.xml
#

integration-tests-windows:
name: Run Integration Tests on Windows
Expand All @@ -104,28 +97,32 @@ jobs:
php-version:
- 8.1
- 8.5

runs-on: "windows-latest"
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Install Ghostscript
run: choco install ghostscript --version 10.03.1 -y

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
env:
phpts: zts
with:
php-version: ${{ matrix.php-version }}
extensions: curl, fileinfo, json, imagick
extensions: curl, fileinfo, json
tools: pie

- name: Install Ghostscript
run: choco install ghostscript -y
- name: Install bernard-ledit extension (Windows)
shell: pwsh
run: |
pie install "mindee/bernard-ledit"
if (-not (php -m | Select-String -Pattern '^bernard_ledit$' -Quiet)) {
Write-Error "bernard_ledit did not load"
exit 1
}
php -r 'echo "bernard_ledit ", phpversion("bernard_ledit"), PHP_EOL;'

- name: Install dependencies
uses: ramsey/composer-install@v3

- name: Unit testing with phpunit
- name: Integration testing with phpunit
run: |
./vendor/bin/phpunit -c tests/functional.xml
./vendor/bin/phpunit -c tests/functional.xml
Loading
Loading