Skip to content

Commit

Permalink
Added support for PHP 8.0 (#8)
Browse files Browse the repository at this point in the history
* Added support for PHP 8.0

* Updated tests

* Added phpunit 9 test workflow
  • Loading branch information
MaximilianKresse authored Dec 4, 2020
1 parent 9f6b3e9 commit 51bef22
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 116 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,35 @@ jobs:
- name: Install dependencies
run: composer update --dev --no-interaction --prefer-dist --no-progress --no-suggest --ansi

- name: Run phpunit
run: |
./vendor/bin/phpunit --testsuite "Functional Tests"
testsPhp8:
name: Run PHP Unit tests (>= 7.3)
runs-on: ubuntu-20.04
strategy:
matrix:
php: ['7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install mupdf and imagemagick
run: sudo apt-get install mupdf-tools imagemagick

- name: Install php
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"

- name: Upgrade phpunit
run: composer require --dev --with-all-dependencies "phpunit/phpunit=^9.0"

- name: Install dependencies
run: composer update --dev --no-interaction --prefer-dist --no-progress --no-suggest --ansi

- name: Run phpunit
run: |
./vendor/bin/phpunit --testsuite "Functional Tests"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^5.6 || ^7.0",
"php": "^5.6 || ^7.0 || ^8.0",
"ext-openssl": "*",
"setasign/fpdi": "^2.0"
},
Expand Down
Loading

0 comments on commit 51bef22

Please sign in to comment.