Skip to content

Commit

Permalink
End support for PHP 7.2 to upgrade phpunit/phpcpd versions. (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
whikloj authored Jul 6, 2021
1 parent 150c777 commit 1d04878
Show file tree
Hide file tree
Showing 10 changed files with 216 additions and 4,869 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ name: Build

on:
push:
branches: [ main ]
branches:
- "**"
pull_request:
branches: [ main ]
branches:
- "main"

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-versions: ["7.2", "7.3", "7.4"]
php-versions: ["7.3", "7.4"]
experimental: [false]
include:
- php-versions: "8.0"
experimental: true

name: PHP ${{ matrix.php-versions }}
steps:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
}
],
"require": {
"pear/archive_tar": "^1.4",
"php": ">=7.2",
"pear/archive_tar": "^1.4.11",
"php": ">=7.3",
"ext-curl": "*",
"ext-zip": "*",
"ext-mbstring": "*",
"ext-intl": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.0",
"phpunit/phpunit": "^9.0",
"phpdocumentor/phpdocumentor": "^2.0",
"sebastian/phpcpd": "^4.0",
"sebastian/phpcpd": "^6.0",
"squizlabs/php_codesniffer": "^3.5",
"donatj/mock-webserver": "^2.1"
},
Expand All @@ -40,7 +40,7 @@
"scripts": {
"check": [
"./vendor/bin/phpcs --standard=PSR2 src tests",
"./vendor/bin/phpcpd --names='*.php' src"
"./vendor/bin/phpcpd --suffix='.php' src"
],
"test": [
"@check",
Expand Down
Loading

0 comments on commit 1d04878

Please sign in to comment.