Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Laravel 12 #6

Merged
merged 16 commits into from
Feb 25, 2025
27 changes: 19 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
pull_request:
branches:
- "*"
schedule:
- cron: '0 0 * * *'

jobs:
php-tests:
Expand All @@ -19,23 +17,34 @@ jobs:

strategy:
matrix:
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*, 9.*]
dependency-version: [prefer-lowest, prefer-stable]
php: [8.4, 8.3, 8.2, 8.1]
laravel: [12.*, 11.*, 10.*, 9.*]
dependency-version: [prefer-stable]
exclude:
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip' # caching pip dependencies

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install Pillow numpy filetype setuptools wheel twine

- name: Install weasyprint
run: |
sudo apt install python3-pip python3-cffi python3-brotli libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0
sudo pip install weasyprint
pip install -r requirements.txt
weasyprint --info
whereis weasyprint

Expand All @@ -52,4 +61,6 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress

- name: Execute Unit Tests
run: composer test
run: |
export WEASYPRINT_BINARY=weasyprint
composer test
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
}
],
"require": {
"php": ">=8.1",
"illuminate/support": "^9|^10|^11",
"illuminate/filesystem": "^9|^10|^11",
"pontedilana/php-weasyprint": "^1.3"
"php": "^8.1",
"illuminate/support": "^9|^10|^11|^12",
"illuminate/filesystem": "^9|^10|^11|^12",
"pontedilana/php-weasyprint": "^1.5"
},
"require-dev": {
"orchestra/testbench": "^7|^8|^9",
"orchestra/testbench": "^7|^8|^9|^10",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
weasyprint >= 64
Loading