Skip to content

Commit

Permalink
Fix mutation testing (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Feb 18, 2024
1 parent dc6ab0e commit df12c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest

php:
- '8.0'
- '8.1'
- '8.2'
os: [ 'ubuntu-latest' ]
php: [ '8.3' ]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ connect-cluster: ## Connect to Redis cluster
mutation-test: ## Run mutation tests. Params: {{ v=8.1 }}. Default latest PHP 8.1
PHP_VERSION=$(filter-out $@,$(v)) docker-compose -f tests/docker/docker-compose.yml build --pull cache-redis-php
make create-cluster
PHP_VERSION=$(filter-out $@,$(v)) docker-compose -f tests/docker/docker-compose.yml run cache-redis-php php -dpcov.enabled=1 -dpcov.directory=. vendor/bin/roave-infection-static-analysis-plugin -j2 --ignore-msi-with-no-mutations --only-covered
PHP_VERSION=$(filter-out $@,$(v)) docker-compose -f tests/docker/docker-compose.yml run cache-redis-php php -dpcov.enabled=1 -dpcov.directory=. vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --only-covered
make down

coverage: ## Run code coverage. Params: {{ v=8.1 }}. Default latest PHP 8.1
Expand Down

0 comments on commit df12c36

Please sign in to comment.