Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit 640562f

Browse files
author
Dominik Zogg
committed
test against php 8.1
1 parent 453f222 commit 640562f

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"chubbyphp/chubbyphp-container": "^1.4|^2.0",
2424
"chubbyphp/chubbyphp-dev-helper": "dev-master",
2525
"chubbyphp/chubbyphp-laminas-config-factory": "^1.1.1",
26-
"chubbyphp/chubbyphp-mock": "^1.6",
27-
"infection/infection": "^0.25.2",
28-
"php-coveralls/php-coveralls": "^2.4.3",
26+
"chubbyphp/chubbyphp-mock": "^1.6.1",
27+
"infection/infection": "^0.25.3",
28+
"php-coveralls/php-coveralls": "^2.5.1",
2929
"phploc/phploc": "^7.0.2",
3030
"phpstan/extension-installer": "^1.1",
31-
"phpstan/phpstan": "^0.12.99",
31+
"phpstan/phpstan": "^1.1.2",
3232
"phpunit/phpunit": "^9.5.10",
3333
"pimple/pimple": "^3.4",
3434
"psr/container": "^1.1.1|^2.0.1"
@@ -48,7 +48,7 @@
4848
}
4949
},
5050
"scripts": {
51-
"fix:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
51+
"fix:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
5252
"test": [
5353
"@test:lint",
5454
"@test:unit",
@@ -58,11 +58,11 @@
5858
"@test:loc",
5959
"@test:cs"
6060
],
61-
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
62-
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
61+
"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",
62+
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=98 --verbose --coverage=build/phpunit",
6363
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
6464
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
65-
"test:loc": "mkdir -p build && vendor/bin/phploc src --verbose | tee build/phploc.log",
65+
"test:loc": "mkdir -p build && vendor/bin/phploc src | tee build/phploc.log",
6666
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=8 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
6767
"test:unit": "vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
6868
}

0 commit comments

Comments
 (0)