* Add WordPress version selection to Docker PHP test suite
* Remove guard for old WordPress version
It was producing an error message when valid versions like “5.3” are selected:
bin/install-wp-tests.sh: line 22: [: 5.3: integer expression expected
I removed it since disallowing older versions doesn't really add any value now.
* Bump image version to trigger rebuild
* Fix existing WordPress version not being replaced
The install-wp-tests.sh script does not install WordPress if a previous installation is detected.
To enable WP version switching, the ENTRYPOINT removes previous files to ensure the installation starts from a clean state.
* Partially revert abd8ab80dc7ef6b57316636d467b511a07d0c5d3
The typo fix was accidentally included in this commit.
* Fix installation routine running every time
A typo was causing the installation routine to run on each use.
* Add WooCommerce version selection
The WC_VERSION environment variable is added to the docker-compose config. If the variable is not set on the shell, it defaults to the minimum supported version (4.5.0)
The ENTRYPOINT is changed to automatically re-install the test suite when the version number is changed.
* Add documentation
* Add versioning to force image rebuild