Skip to content

Commit b3b899c

Browse files
committed
php 8.1
1 parent b268cb2 commit b3b899c

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/ci.yml

+11
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ jobs:
4141
env:
4242
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
44+
php81:
45+
name: PHP 8.1
46+
runs-on: ubuntu-20.04
47+
steps:
48+
- name: checkout
49+
uses: actions/checkout@v2
50+
- name: composer test
51+
uses: docker://chubbyphp/ci-php81:latest
52+
env:
53+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
4455
- name: sonarcloud.io
4556
uses: sonarsource/sonarcloud-github-action@master
4657
env:

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
},
2929
"require-dev": {
3030
"chubbyphp/chubbyphp-dev-helper": "dev-master",
31-
"chubbyphp/chubbyphp-mock": "^1.6",
32-
"infection/infection": "^0.25.2",
33-
"php-coveralls/php-coveralls": "^2.4.3",
31+
"chubbyphp/chubbyphp-mock": "^1.6.1",
32+
"infection/infection": "^0.25.3",
33+
"php-coveralls/php-coveralls": "^2.5.1",
3434
"phploc/phploc": "^7.0.2",
3535
"phpstan/extension-installer": "^1.1",
36-
"phpstan/phpstan": "^0.12.99",
36+
"phpstan/phpstan": "^1.1.2",
3737
"phpunit/phpunit": "^9.5.10"
3838
},
3939
"autoload": {
@@ -47,7 +47,7 @@
4747
},
4848
"scripts": {
4949
"clean-directories": "bin/console clean-directories cache log",
50-
"fix:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
50+
"fix:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
5151
"setup-dev": [
5252
"@clean-directories"
5353
],
@@ -60,7 +60,7 @@
6060
"@test:loc",
6161
"@test:cs"
6262
],
63-
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
63+
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
6464
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
6565
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
6666
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",

0 commit comments

Comments
 (0)