Skip to content

Commit f76017b

Browse files
authored
Merge pull request #4012 from MGatner/php8-workflows
PHP 8 Actions
2 parents 51d4611 + 8923a4a commit f76017b

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/test-phpstan.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,20 @@ on:
2020

2121
jobs:
2222
build:
23-
name: Analyze code (PHPStan)
23+
name: PHP ${{ matrix.php-versions }} Static Analysis
2424
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
php-versions: ['7.4', '8.0']
2529
steps:
2630
- name: Checkout
2731
uses: actions/checkout@v2
2832

2933
- name: Setup PHP
3034
uses: shivammathur/setup-php@v2
3135
with:
32-
php-version: '7.4'
36+
php-version: ${{ matrix.php-versions }}
3337
extensions: intl
3438

3539
- name: Use latest Composer

.github/workflows/test-phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
php-versions: ['7.2', '7.3', '7.4']
43+
php-versions: ['7.2', '7.3', '7.4', '8.0']
4444
db-platforms: ['MySQLi', 'Postgre', 'SQLite3', 'SQLSRV']
4545

4646
services:
@@ -88,7 +88,7 @@ jobs:
8888
with:
8989
php-version: ${{ matrix.php-versions }}
9090
tools: composer, pecl
91-
extensions: imagick, sqlsrv
91+
extensions: imagick, sqlsrv-beta
9292
coverage: xdebug
9393
env:
9494
update: true

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"fakerphp/faker": "^1.9",
2020
"mikey179/vfsstream": "^1.6",
2121
"phpstan/phpstan": "^0.12",
22-
"phpunit/phpunit": "^8.5",
22+
"phpunit/phpunit": "^8.5 || ^9.1",
2323
"predis/predis": "^1.1",
2424
"rector/rector": "^0.8",
2525
"squizlabs/php_codesniffer": "^3.3"

0 commit comments

Comments
 (0)