Skip to content

Commit

Permalink
add PHP8, drop 7.2 and 7.3 (#8)
Browse files Browse the repository at this point in the history
* update composer requirements to php 7.4 min and 8

* update phpunit result printer to version that handles php8

* add the fucking composer.lock too

* migrate phpunit config to phpunit 9.5 version

* add 8 for tests ci, drop 7.3

* add ocular as dev dep for ci

* add own htmlpagedom package for php8

* add github token in github actions for rate limit

* bump mockery
  • Loading branch information
godbout authored Jan 3, 2021
1 parent e1ac0bd commit 70d12ca
Show file tree
Hide file tree
Showing 4 changed files with 1,118 additions and 845 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
php: [7.4, 7.3]
php: [8.0, 7.4]
dependency-version: [prefer-lowest, prefer-stable]

steps:
Expand All @@ -29,6 +29,8 @@ jobs:
tools: pecl
extensions: fileinfo, sqlite, pdo_sqlite
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: do some magic Composer cache
id: composer-cache
Expand All @@ -46,6 +48,4 @@ jobs:
run: composer test -- --coverage-clover=coverage.clover

- name: upload code coverage
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
17 changes: 12 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@
"email": "[email protected]"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/godbout/htmlpagedom"
}
],
"require": {
"php": "^7.3",
"php": "^7.4 || ^8.0",
"league/flysystem": "^1.0.69",
"illuminate/database": "^8.0",
"laravel-zero/framework": "^8.0",
"symfony/css-selector": "^5.0",
"symfony/dom-crawler": "^5.0",
"wa72/htmlpagedom": "^2",
"wa72/htmlpagedom": "dev-master",
"vlucas/phpdotenv": "^5.0",
"nunomaduro/collision": "^5.0"
},
Expand All @@ -42,9 +48,10 @@
}
},
"require-dev": {
"codedungeon/phpunit-result-printer": "^0.28",
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^9.3"
"codedungeon/phpunit-result-printer": "^0.30",
"mockery/mockery": "^1.4",
"phpunit/phpunit": "^9.3",
"scrutinizer/ocular": "^1.8"
},
"autoload-dev": {
"psr-4": {
Expand Down
Loading

0 comments on commit 70d12ca

Please sign in to comment.