Skip to content

Commit

Permalink
Support Laravel 12 (#6)
Browse files Browse the repository at this point in the history
* Laravel 12

* Update run-tests.yml

* Update run-tests.yml

* Run apt-get update

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml

* Create requirements.txt

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml

* Update run-tests.yml
  • Loading branch information
barryvdh authored Feb 25, 2025
1 parent af5e586 commit 63dbfe2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
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

0 comments on commit 63dbfe2

Please sign in to comment.