Skip to content

Commit 9a1830d

Browse files
authored
Merge pull request #328 from W0rma/php81-82
Test against PHP 8.1/8.2 and symfony 6
2 parents 2f37b88 + f0b415e commit 9a1830d

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ jobs:
1212
phpunit:
1313
name: "PHPUnit"
1414
runs-on: "ubuntu-20.04"
15-
continue-on-error: ${{ matrix.experimental }}
1615

1716
strategy:
1817
fail-fast: false
1918
matrix:
20-
experimental: [false]
21-
composer-options: ["--prefer-stable"]
2219
php-version:
2320
- "7.3"
2421
- "7.4"
2522
- "8.0"
23+
- "8.1"
24+
- "8.2"
2625
dependencies:
2726
- "highest"
2827
- "lowest"
@@ -32,8 +31,11 @@ jobs:
3231
- "^5.0"
3332
include:
3433
- php-version: 8.0
35-
symfony-require: "6.0.*@dev"
36-
experimental: true
34+
symfony-require: "^6.0"
35+
- php-version: 8.1
36+
symfony-require: "^6.0"
37+
- php-version: 8.2
38+
symfony-require: "^6.0"
3739

3840
steps:
3941
- name: Checkout code
@@ -48,7 +50,7 @@ jobs:
4850
tools: "flex"
4951

5052
- name: "Install dependencies with Composer"
51-
uses: "ramsey/composer-install@v1"
53+
uses: "ramsey/composer-install@v2"
5254
env:
5355
SYMFONY_REQUIRE: "${{ matrix.symfony-require }}"
5456
with:

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"php": "^7.2 | ^8.0",
2121
"doctrine/annotations": "^1.13.2",
2222
"jms/metadata": "^2.0",
23-
"jms/serializer": "^3.2",
23+
"jms/serializer": "^3.18.2",
2424
"symfony/expression-language": "~3.0 || ~4.0 || ~5.0 || ~6.0"
2525
},
2626
"require-dev": {
@@ -30,6 +30,7 @@
3030
"pagerfanta/core": "^2.4 || ^3.0",
3131
"phpdocumentor/type-resolver": "^1.5.1",
3232
"phpspec/prophecy-phpunit": "^2.0.1",
33+
"phpspec/prophecy": "^1.16",
3334
"symfony/routing": "~3.0 || ~4.0 || ~5.0 || ~6.0",
3435
"symfony/yaml": "~3.0 || ~4.0 || ~5.0 || ~6.0",
3536
"twig/twig": "^1.43 || ^2.13 || ^3.0"
@@ -45,7 +46,11 @@
4546
},
4647
"config": {
4748
"bin-dir": "bin",
48-
"sort-packages": true
49+
"sort-packages": true,
50+
"allow-plugins": {
51+
"composer/package-versions-deprecated": true,
52+
"dealerdirect/phpcodesniffer-composer-installer": true
53+
}
4954
},
5055
"extra": {
5156
"branch-alias": {

0 commit comments

Comments
 (0)