move test and lint workflows to GitHub Actions

This commit is contained in:
Jacob Bednarz
2021-05-28 10:08:36 +10:00
parent 7db3d6e62c
commit af14a5f003
4 changed files with 85 additions and 32 deletions

View File

@@ -1,17 +1,14 @@
THIS := $(realpath $(lastword $(MAKEFILE_LIST)))
HERE := $(shell dirname $(THIS))
.PHONY: all fix lint test
all: lint test
fix:
php $(HERE)/vendor/bin/php-cs-fixer fix --config=$(HERE)/.php_cs
php vendor/bin/php-cs-fixer fix --config=.php_cs
lint:
php $(HERE)/vendor/bin/php-cs-fixer fix --config=$(HERE)/.php_cs --dry-run
php $(HERE)/vendor/bin/phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode
php $(HERE)/vendor/bin/phpmd tests/ text cleancode,codesize,controversial,design,naming,unusedcode
php vendor/bin/php-cs-fixer fix --config=.php_cs --dry-run
php vendor/bin/phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode
php vendor/bin/phpmd tests/ text cleancode,codesize,controversial,design,naming,unusedcode
test:
php $(HERE)/vendor/bin/phpunit --configuration $(HERE)/phpunit.xml
php vendor/bin/phpunit --configuration phpunit.xml