- Linux, Macos, WSL
- mise, it installs PHP, Composer, mago and hk from
mise.toml - Xdebug or PCOV (only for test coverage, mise does not provide them)
- Make
- Git
Setup SSH before clone:
git clone git@github.com:hexlet-boilerplates/php-package.git
cd php-package
mise install
make installmake install also installs the git hooks: hk runs the checks before a commit and the tests before a push.
make lintSee config mago.toml
make testmake test-coverage
# see ./build/logs/clover.xml- the set of files under coverage is declared in
phpunit.xml - the threshold is
COVERAGE_MINin the Makefile —make test-coverageexits with an error below it, so the PHP CI badge stays green only while coverage holds - requires the Xdebug or PCOV extension, otherwise PHPUnit reports
No code coverage driver available
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.
