Skip to content

Commit aa786b1

Browse files
authored
Merge pull request #129 from tedious/php7_support
Test php7 support
2 parents dee8822 + 8460a73 commit aa786b1

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

.github/workflows/pr_tests.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,23 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
phpunit_version: [10]
13-
php_version: ["8.1", "8.2", "latest"]
14-
include:
15-
- phpunit_version: "9"
16-
php_version: "8.0"
12+
php_version: ["7.4", "8.0", "8.1", "8.2", "latest"]
1713

1814
runs-on: ubuntu-latest
1915

2016
steps:
2117
- uses: actions/checkout@v3
2218

19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php_version }}
23+
coverage: xdebug
24+
2325
- name: Install PHP Packages
24-
uses: php-actions/composer@v6
26+
run: composer install --no-progress
2527

2628
- name: Run Tests
27-
uses: php-actions/phpunit@v3
2829
env:
2930
XDEBUG_MODE: coverage
30-
with:
31-
version: ${{ matrix.phpunit_version }}
32-
php_version: ${{ matrix.php_version }}
33-
php_extensions: "xdebug"
34-
coverage_clover: "build/logs/clover.xml"
31+
run: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^8.0"
18+
"php": "^7.0|^8.0"
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "^9|^10",

0 commit comments

Comments
 (0)