Skip to content

Commit

Permalink
chore: Add tests for Makefiles (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Jan 7, 2023
1 parent fd828a4 commit e41c374
Show file tree
Hide file tree
Showing 7 changed files with 560 additions and 6 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8.2",
"ergebnis/composer-normalize": "^2.29",
"fidry/makefile": "^0.2.1",
"mikey179/vfsstream": "^1.6.11",
"phpspec/prophecy-phpunit": "^2.0.1",
"phpunit/phpunit": "^9.5.26",
Expand Down
72 changes: 71 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions requirement-checker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ help:
#---------------------------------------------------------------------------

.PHONY: check
check: ## Runs all checks
check: ## Runs all checks
check: cs cs_lint test

.PHONY: clean
clean: ## Cleans all created artifacts
clean: ## Cleans all created artifacts
clean:
rm -rf \
dist \
Expand All @@ -54,7 +54,7 @@ clean:


.PHONY: dump
dump: ## Dumps the requirement-checker
dump: ## Dumps the requirement-checker
dump:
rm -rf $(PHAR) $(PHAR_EXTRACT) || true
$(MAKE) _dump
Expand Down Expand Up @@ -102,7 +102,7 @@ php_cs_fixer_lint: $(PHP_CS_FIXER_BIN)
#---------------------------------------------------------------------------

.PHONY: test
test: ## Runs all the tests
test: ## Runs all the tests
test: phpunit terminal_copy

.PHONY: phpunit
Expand Down
1 change: 1 addition & 0 deletions requirement-checker/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29",
"fidry/makefile": "^0.2.1",
"phpunit/phpunit": "^9.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit e41c374

Please sign in to comment.