Files
parsecsv-for-php/Makefile
Jim Myhrberg 8cebcbd9bb ci(github): add GitHub Actions CI workflow
Can be tested locally via the local-ci make target, which requires
Docker and act (https://github.com/nektos/act).
2021-11-07 13:36:38 +01:00

22 lines
503 B
Makefile

COMPOSER_BIN_DIR := vendor/bin
PHPUNIT_ARGS = -c tests/phpunit.xml
test: phpunit-dep
${COMPOSER_BIN_DIR}/phpunit ${PHPUNIT_ARGS}
phpunit-dep:
test -f ${COMPOSER_BIN_DIR}/phpunit || ( \
echo "phpunit is required to run tests." \
"Please run: composer install" >&2 && \
exit 1 \
)
# Requires:
# - Docker: https://docker.com
# - act: https://github.com/nektos/act
local-ci:
act -P ubuntu-latest=shivammathur/node:latest -W .github/workflows/ci.yml
.SILENT:
.PHONY: test phpunit-dep local-ci