Skip to content

Commit a75288b

Browse files
committed
Only run syntax check, unit tests, and mutation tests on all supported
versions
1 parent 6445067 commit a75288b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ permissions:
1414
jobs:
1515
ci:
1616
name: Continuous Integration
17-
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main
17+
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@ci-split-tasks-between-across-all-version-and-only-targeted

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ endif
3535
all: ## Runs everything ####
3636
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | grep -v "####" | awk 'BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | xargs --open-tty $(MAKE)
3737

38-
syntax-php: ## Lint PHP syntax
38+
syntax-php: ## Lint PHP syntax ##%##
3939
$(DOCKER_RUN) vendor/bin/parallel-lint --exclude vendor .
4040

4141
cs-fix: ## Fix any automatically fixable code style issues ###
@@ -50,15 +50,15 @@ stan: ## Run static analysis (PHPStan)
5050
psalm: ## Run static analysis (Psalm)
5151
$(DOCKER_RUN) vendor/bin/psalm --threads=$(THREADS) --shepherd --stats --config=./etc/qa/psalm.xml
5252

53-
unit-testing: ## Run tests
53+
unit-testing: ## Run tests ##%##
5454
$(DOCKER_RUN) vendor/bin/phpunit --colors=always -c ./etc/qa/phpunit.xml --coverage-text --coverage-html ./var/tests-unit-coverage-html --coverage-clover ./var/tests-unit-clover-coverage.xml
5555
$(DOCKER_RUN) test -n "$(COVERALLS_REPO_TOKEN)" && test -n "$(COVERALLS_RUN_LOCALLY)" && test -f ./var/tests-unit-clover-coverage.xml && vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true
5656

5757
unit-testing-raw: ## Run tests ####
5858
php vendor/phpunit/phpunit/phpunit --colors=always -c ./etc/qa/phpunit.xml --coverage-text --coverage-html ./var/tests-unit-coverage-html --coverage-clover ./var/tests-unit-clover-coverage.xml
5959
test -n "$(COVERALLS_REPO_TOKEN)" && test -n "$(COVERALLS_RUN_LOCALLY)" && test -f ./var/tests-unit-clover-coverage.xml && ./vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true
6060

61-
mutation-testing: ## Run mutation testing
61+
mutation-testing: ## Run mutation testing ##%##
6262
$(DOCKER_RUN) vendor/bin/roave-infection-static-analysis-plugin --ansi --log-verbosity=all --threads=$(THREADS) --psalm-config etc/qa/psalm.xml || (cat ./var/infection.log && false)
6363

6464
mutation-testing-raw: ## Run mutation testing ####
@@ -98,7 +98,10 @@ outdated: ## Show outdated dependencies ####
9898
$(DOCKER_RUN) composer outdated
9999

100100
task-list-ci: ## CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
101-
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | grep -v "###" | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c 'split("\n")| .[0:-1]'
101+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | grep "##\%##" | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c 'split("\n")| .[0:-1]'
102+
103+
task-list-ci-targeted: ## CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
104+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | grep -v "###" | grep -v "##\%##" | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c 'split("\n")| .[0:-1]'
102105

103106
help: ## Show this help ####
104107
@printf "\033[33mUsage:\033[0m\n make [target]\n\n\033[33mTargets:\033[0m\n"

0 commit comments

Comments
 (0)