Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.52 KB

Contributing.md

File metadata and controls

65 lines (40 loc) · 1.52 KB

Contributing to test-splitter

Contributions are welcome.

Requirements for code created

test-splitter MUST support all PHP versions that are either in active or security support.

The maintainer will aim to add support for new PHP versions within 6 weeks of the official release.

Code checks

After writing your code, format it according to the project style:

composer cs-fix

Perform all quality assurance tasks that are run for continuous integration:

composer ci

Docker setup

Dockerfile and docker-compose.yml have been provided to help with development.

Install dependencies

Run the following to install dependencies in the PHP version of your choice (e.g. 8.4):

docker compose run --rm php84 composer install

Run composer scripts

You can run composer scripts in any supported PHP version through Docker:

docker compose run --rm php<version> composer <script> 

For example, to run cs-fix on PHP 8.2:

docker compose run --rm php82 composer cs-fix

To run all validations in every supported PHP version, you can use the following command:

for v in 81 82 83 84 85; do docker compose run --rm php$v composer ci || break; done

See composer.json section scripts for all available scripts.

Shell access

You can get interactive shell access in any PHP version, e.g. on PHP 8.3:

docker compose run --rm php83 bash