Skip to content

Commit

Permalink
[general] Fixing config (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 25, 2024
1 parent 77d652b commit 877144a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
extensions: "json, intl, :php-psr"
cache-version: "1"
composer-version: "v2"
composer-options: "--no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable"
composer-options: "--no-interaction --no-progress --prefer-dist --prefer-stable"
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.ORGANIZATION_ACCESS_TOKEN }}"}}'

jobs:
Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ phpstan: ## Analyse code with PHPStan

.PHONY: tests
tests: ## Run all tests
$(PRE_PHP) $(PARATEST_COMMAND) $(ARGS)

tests-simple: ## Run all tests
$(PRE_PHP) $(PHPUNIT_COMMAND) $(ARGS)

coverage-clover: ## Generate code coverage in XML format
Expand All @@ -47,7 +50,7 @@ mutations: ## Check code for mutants

mutations-tests:
mkdir -p var/coverage
$(PRE_PHP) $(PHPUNIT_COVERAGE) --coverage-xml=var/coverage/xml --log-junit=var/coverage/junit.xml
$(PRE_PHP) $(PHPUNIT_MUTATIONS) --coverage-xml=var/coverage/xml --log-junit=var/coverage/junit.xml

mutations-infection:
$(PRE_PHP) vendor/bin/infection \
Expand All @@ -68,7 +71,9 @@ list:

PRE_PHP=XDEBUG_MODE=off

PHPUNIT_COMMAND="vendor/bin/paratest" -c $(PHPUNIT_CONFIG) --runner=WrapperRunner -p$(LOGICAL_CORES)
PHPUNIT_COVERAGE=php -d pcov.enabled=1 -d pcov.directory=./src $(PHPUNIT_COMMAND)
PARATEST_COMMAND="vendor/bin/paratest" -c $(PHPUNIT_CONFIG) --runner=WrapperRunner -p$(LOGICAL_CORES)
PHPUNIT_COMMAND="vendor/bin/phpunit" -c $(PHPUNIT_CONFIG)
PHPUNIT_COVERAGE=php -d pcov.enabled=1 -d pcov.directory=./src $(PARATEST_COMMAND)
PHPUNIT_MUTATIONS=php -d pcov.enabled=1 -d pcov.directory=./src $(PARATEST_COMMAND)

LOGICAL_CORES=$(shell nproc || sysctl -n hw.logicalcpu || echo 4)

0 comments on commit 877144a

Please sign in to comment.