Skip to content

Commit 2ccf2c5

Browse files
Test on PHP 8.1 (#143)
1 parent 39eb754 commit 2ccf2c5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

+7-1
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,6 +23,12 @@ jobs:
2323
tools: composer
2424
coverage: none
2525

26+
- name: Require PHPSpec 7.1 dependencies
27+
run: |
28+
composer require "phpspec/phpspec:^7.1@dev" --no-interaction --no-update
29+
composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php
30+
if: "matrix.php == '8.1'"
31+
2632
- name: Install dependencies
2733
run: composer update --prefer-dist --no-interaction --no-progress
2834

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"ext-zlib": "*",
2828
"ergebnis/composer-normalize": "^2.6",
2929
"guzzlehttp/psr7": "^1.0",
30-
"phpspec/phpspec": "^5.1 || ^6.3",
30+
"phpspec/phpspec": "^5.1 || ^6.3 || ^7.1",
3131
"slim/slim": "^3.0",
3232
"laminas/laminas-diactoros": "^2.0"
3333
},

0 commit comments

Comments
 (0)