Infection (#4)
This commit is contained in:
@@ -18,14 +18,12 @@ jobs:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- lowest
|
- lowest
|
||||||
- highest
|
- highest
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nsqd:
|
nsqd:
|
||||||
image: nsqio/nsq:v1.2.0
|
image: nsqio/nsq:v1.2.0
|
||||||
options: --entrypoint /nsqd
|
options: --entrypoint /nsqd
|
||||||
ports:
|
ports:
|
||||||
- 4150:4150
|
- 4150:4150
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -119,3 +117,32 @@ jobs:
|
|||||||
|
|
||||||
- name: Run script
|
- name: Run script
|
||||||
run: composer psalm
|
run: composer psalm
|
||||||
|
|
||||||
|
infection:
|
||||||
|
name: Infection
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
nsqd:
|
||||||
|
image: nsqio/nsq:v1.2.0
|
||||||
|
options: --entrypoint /nsqd
|
||||||
|
ports:
|
||||||
|
- 4150:4150
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '8.0'
|
||||||
|
coverage: pcov
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer update --no-progress --no-interaction --prefer-dist
|
||||||
|
|
||||||
|
- name: Run script
|
||||||
|
env:
|
||||||
|
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
|
||||||
|
run: |
|
||||||
|
git fetch --depth=1 origin $GITHUB_BASE_REF
|
||||||
|
php vendor/bin/infection -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
/vendor/
|
/vendor/
|
||||||
/composer.lock
|
/composer.lock
|
||||||
|
|
||||||
|
/.php_cs.cache
|
||||||
|
/.phpunit.result.cache
|
||||||
|
/infection.log
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
PHP Client for [NSQ](https://nsq.io/).
|
PHP Client for [NSQ](https://nsq.io/).
|
||||||
|
|
||||||
[](//packagist.org/packages/nsq/nsq) [](//packagist.org/packages/nsq/nsq) [](//packagist.org/packages/nsq/nsq) [](//packagist.org/packages/nsq/nsq)
|
[](//packagist.org/packages/nsq/nsq) [](//packagist.org/packages/nsq/nsq) [](//packagist.org/packages/nsq/nsq)
|
||||||
[](https://codecov.io/gh/nsqphp/nsqphp)
|
[](https://codecov.io/gh/nsqphp/nsqphp) [](https://dashboard.stryker-mutator.io/reports/github.com/nsqphp/nsqphp/main)
|
||||||
|
|
||||||
This library follow [SemVer](https://semver.org/). Until version 1.0 will be released anything MAY change at any time, public API SHOULD NOT be considered stable. If you want use it before stable version was released install strict version without range.
|
This library follow [SemVer](https://semver.org/). Until version 1.0 will be released anything MAY change at any time, public API SHOULD NOT be considered stable. If you want use it before stable version was released install strict version without range.
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
"dg/bypass-finals": "^1.3",
|
"dg/bypass-finals": "^1.3",
|
||||||
"ergebnis/composer-normalize": "9999999-dev",
|
"ergebnis/composer-normalize": "9999999-dev",
|
||||||
"friendsofphp/php-cs-fixer": "^2.18",
|
"friendsofphp/php-cs-fixer": "^2.18",
|
||||||
|
"infection/infection": "^0.20.2",
|
||||||
"phpstan/phpstan": "^0.12.68",
|
"phpstan/phpstan": "^0.12.68",
|
||||||
"phpstan/phpstan-phpunit": "^0.12.17",
|
"phpstan/phpstan-phpunit": "^0.12.17",
|
||||||
"phpstan/phpstan-strict-rules": "^0.12.9",
|
"phpstan/phpstan-strict-rules": "^0.12.9",
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"directories": [
|
||||||
|
"src"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"logs": {
|
||||||
|
"text": "infection.log",
|
||||||
|
"github": true,
|
||||||
|
"badge": {
|
||||||
|
"branch": "main"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mutators": {
|
||||||
|
"@default": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user