Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4']
prefer_lowest: ['', '--prefer-lowest']
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
prefer_lowest: ['']
# --prefer-lowest only on PHP 7.4: the floor of every dependency
# lives at 7.4 (mockery 1.6, phpunit 9.6, console-diff-renderer 1.0),
# so a "lowest" run on PHP 8.x would install deps that don't actually
# support PHP 8 at runtime.
include:
- php: '7.4'
prefer_lowest: '--prefer-lowest'

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -47,7 +54,8 @@ jobs:
run: composer update --no-interaction --prefer-dist ${{ matrix.prefer_lowest }}

- name: Lint (phpcs)
run: vendor/bin/phpcs -p --warning-severity=0 src/ tests/
if: matrix.prefer_lowest == ''
run: vendor/bin/phpcs --standard=./phpcs.xml.dist -p --warning-severity=0 src/ tests/

- name: Unit tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/tests/report/
.idea
.DS_Store
.phpunit.result.cache
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@
}
],
"require": {
"php": "^7.4",
"php": "^7.4 || ^8.0",
"symfony/process": "^5",
"graze/data-structure": "^2.0",
"symfony/event-dispatcher": "^5",
"psr/log": "^1.0"
},
"require-dev": {
"mockery/mockery": "^1.3.1",
"phpunit/phpunit": "^8.5.52",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^9.6",
"dms/phpunit-arraysubset-asserts": "^0.5",
"squizlabs/php_codesniffer": "^3.3.1",
"graze/standards": "^2",
"symfony/console": "^4 | ^5",
"graze/console-diff-renderer": "^0.6.1"
"symfony/console": "^5",
"graze/console-diff-renderer": "^1.0"
},
"suggest": {
"symfony/console": "To use the Table to print current runs",
Expand Down
Loading