Skip to content

Commit 7d39899

Browse files
authored
Merge pull request #28 from php-http/php-81-83
test with php 8.1 and 8.2
2 parents c25665f + 7689ca4 commit 7d39899

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: tests
22

33
on:
44
push:
5+
branches:
6+
- '[0-9]+.x'
7+
- '[0-9]+.[0-9]+'
8+
- '[0-9]+.[0-9]+.x'
59
pull_request:
610

711
jobs:
@@ -10,7 +14,7 @@ jobs:
1014
runs-on: ubuntu-latest
1115
strategy:
1216
matrix:
13-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
17+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1418

1519
steps:
1620
- name: Checkout code
@@ -24,13 +28,8 @@ jobs:
2428
tools: composer:v2
2529
coverage: none
2630

27-
- name: Install PHP 7 dependencies
31+
- name: Install PHP dependencies
2832
run: composer update --prefer-dist --no-interaction --no-progress
29-
if: "matrix.php != '8.0'"
30-
31-
- name: Install PHP 8 dependencies
32-
run: composer update --prefer-dist --no-interaction --no-progress --ignore-platform-reqs
33-
if: "matrix.php == '8.0'"
3433

3534
- name: Execute tests
3635
run: composer test

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"php" : "^7.1 || ^8.0"
1919
},
2020
"require-dev": {
21-
"friends-of-phpspec/phpspec-code-coverage" : "^4.3.2",
22-
"phpspec/phpspec": "^5.1.2 || ^6.2"
21+
"friends-of-phpspec/phpspec-code-coverage" : "^4.3.2 || ^6.3",
22+
"phpspec/phpspec": "^5.1.2 || ^6.2 || ^7.4"
2323
},
2424
"autoload": {
2525
"psr-4": {
@@ -29,10 +29,5 @@
2929
"scripts": {
3030
"test": "vendor/bin/phpspec run",
3131
"test-ci": "vendor/bin/phpspec run -c phpspec.yml.ci"
32-
},
33-
"extra": {
34-
"branch-alias": {
35-
"dev-master": "1.1-dev"
36-
}
3732
}
3833
}

0 commit comments

Comments
 (0)