Skip to content

Commit 0ec159f

Browse files
mmollxalopp
authored andcommitted
Test on PHP 8.1
1 parent 12e4004 commit 0ec159f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- 7.3
4545
- 7.4
4646
- 8.0
47+
- 8.1
4748
dependencies_level:
4849
- --prefer-lowest
4950
- ""
@@ -73,17 +74,20 @@ jobs:
7374
key: "cache-composer-${{ hashFiles('composer.json') }}"
7475
restore-keys: 'cache-composer-'
7576
- name: Run composer
76-
if: ${{ matrix.php_version != '8.0' }}
77+
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
7778
run: composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
7879
- name: Run composer with workaround for PHP 8 and incompatible PHPUnit
79-
if: ${{ matrix.php_version == '8.0' }}
80+
if: ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' }}
8081
run: composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
8182
- name: Run tests with coverage
82-
if: ${{ matrix.php_version != '8.0' }}
83+
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
8384
run: php vendor/bin/phpunit --coverage-clover=coverage.xml
8485
- name: Run tests
8586
if: ${{ matrix.php_version == '8.0' }}
8687
run: vendor/bin/phpunit
88+
- name: Run tests
89+
if: ${{ matrix.php_version == '8.1' }}
90+
run: vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php
8791
- name: Run integration tests
8892
run: vendor/bin/phpcs -s --standard=MO4 integrationtests/testfile.php
8993
- name: Run PHPStan

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"require-dev": {
2525
"phan/phan": "^5.1.0",
26-
"phpstan/phpstan": "^1.0.0",
27-
"phpstan/phpstan-strict-rules": "^1.0.0",
26+
"phpstan/phpstan": "^1.0",
27+
"phpstan/phpstan-strict-rules": "^1.0",
2828
"phpunit/phpunit": "^7.0",
2929
"psalm/plugin-phpunit": "^0.16.1",
3030
"vimeo/psalm": "^4.5.2"
@@ -34,6 +34,6 @@
3434
"dealerdirect/phpcodesniffer-composer-installer": "~0.7",
3535
"escapestudios/symfony2-coding-standard": "^3.10.0",
3636
"slevomat/coding-standard": "^7.0.1",
37-
"squizlabs/php_codesniffer": "^3.6.0"
37+
"squizlabs/php_codesniffer": "^3.6.2"
3838
}
3939
}

0 commit comments

Comments
 (0)