Skip to content

Commit fb9f2df

Browse files
authored
Merge pull request #4 from Gared/allow_newer_symfony_versions
Allow newer symfony versions
2 parents 18c8fa8 + 2bcddea commit fb9f2df

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

.github/workflows/php.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,20 @@ jobs:
2828
- name: Validate composer.json
2929
run: composer validate
3030

31-
# - name: Cache Composer packages
32-
# id: composer-cache
33-
# uses: actions/cache@v2
34-
# with:
35-
# path: vendor
36-
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
37-
# restore-keys: |
38-
# ${{ runner.os }}-php-
31+
- uses: "shivammathur/setup-php@v2"
32+
with:
33+
php-version: ${{ matrix.php-version }}
3934

4035
- name: Install dependencies
4136
uses: "ramsey/composer-install@v3"
4237
with:
4338
dependency-versions: ${{ matrix.dependency-versions }}
4439

4540
- name: PHPUnit tests
46-
uses: php-actions/phpunit@v2
41+
uses: php-actions/phpunit@v4
4742
with:
4843
configuration: phpunit.xml
4944
php_version: ${{ matrix.php-version }}
50-
version: 9
5145

5246
- name: Run PHPStan
5347
run: vendor/bin/phpstan

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
"php": ">=8.1",
2525
"ext-json": "*",
2626
"guzzlehttp/guzzle": "^7.2",
27-
"symfony/serializer": "^5.2",
28-
"symfony/property-access": "^5.2",
29-
"symfony/property-info": "^5.2",
27+
"symfony/serializer": "^5.2|^6.0|^7.0",
28+
"symfony/property-access": "^5.2|^6.0|^7.0",
29+
"symfony/property-info": "^5.2|^6.0|^7.0",
3030
"phpdocumentor/reflection-docblock": "^5.2"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^10",
33+
"phpunit/phpunit": "^10.5.0",
3434
"phpstan/phpstan": "^1.0",
3535
"phpstan/phpstan-phpunit": "^1.0",
3636
"phpstan/phpstan-strict-rules": "^1.0"

phpunit.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
83
<testsuites>
94
<testsuite name="Project Test Suite">
105
<directory>tests</directory>
@@ -13,4 +8,9 @@
138
<php>
149
<env name="APP_ENV" value="testing"/>
1510
</php>
11+
<source>
12+
<include>
13+
<directory suffix=".php">src/</directory>
14+
</include>
15+
</source>
1616
</phpunit>

0 commit comments

Comments
 (0)