Pact-PHP
Pre Reqs​
- PHP 8.x or greater
- FFI and Sockets extensions enabled in your php.ini
Steps​
- Run
composer install- This will install php dependencies to
vendor - This will install pact libraries to
bin
- This will install php dependencies to
- Run
composer test- This will run our unit tests
- Run
composer lint- This will run the phpcs-lint
- Run
composer fix- This will correct any auto fixable linter errors
- Run
composer static-code-analysis- Run static code analysis
CI Locally​
MacOS ARM​
Pre Reqs​
- MacOS ARM
- Tart.run
- Cirrus-CLI
Steps​
Run all versions of PHP
cirrus run --output github-actions macos_arm64 -e CIRRUS_CLI=true
Run a specified version of PHP
cirrus run --output github-actions 'macos_arm64 VERSION:8.2' -e CIRRUS_CLI=true
Linux ARM​
Pre Reqs​
- Docker
- x86_64 or arm64/aarch64 host
Steps​
Run all versions of PHP
cirrus run --output github-actions linux_arm64
Run a specified version of PHP
cirrus run --output github-actions 'macos_arm64 VERSION:8.2'