Skip to content

Commit 133e14e

Browse files
Test on PHP 8.1 (#214)
1 parent 4751c8f commit 133e14e

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
13+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1414

1515
steps:
1616
- name: Checkout code
@@ -23,15 +23,14 @@ jobs:
2323
tools: composer:v2
2424
coverage: none
2525

26-
- name: Install PHP 7 dependencies
27-
run: composer update --prefer-dist --no-interaction --no-progress
28-
if: "matrix.php != '8.0'"
29-
30-
- name: Install PHP 8 dependencies
26+
- name: Require PHPSpec 7.1 dependencies
3127
run: |
32-
composer require "phpunit/phpunit:^9.3@dev" "phpunit/php-code-coverage:^9.0@dev" "sebastian/global-state:^5.0@dev" "phpdocumentor/reflection-docblock:^5.2@dev" --no-interaction --no-update
28+
composer require "phpspec/phpspec:^7.1@dev" --no-interaction --no-update
3329
composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php
34-
if: "matrix.php == '8.0'"
30+
if: "matrix.php == '8.1'"
31+
32+
- name: Install PHP dependencies
33+
run: composer update --prefer-dist --no-interaction --no-progress
3534

3635
- name: Execute tests
3736
run: composer test

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"doctrine/instantiator": "^1.1",
2626
"guzzlehttp/psr7": "^1.4",
2727
"nyholm/psr7": "^1.2",
28-
"phpspec/phpspec": "^5.1 || ^6.0",
28+
"phpspec/phpspec": "^5.1 || ^6.3 || ^7.1",
2929
"phpspec/prophecy": "^1.10.2",
3030
"phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.3"
3131
},

0 commit comments

Comments
 (0)