alleyinteractive/Run PHP tests
Setup PHP environment and run install, audit, test, and build commands using Composer
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 14, 2026
- License
- GPL 2.0
Pinned Snippet
uses: alleyinteractive/action-test-php@0d6dcd4f0779fb567b88cd0851b90608fcd8c20a # v1.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| php-version | PHP version to use | no | latest |
| php-tools | PHP tools to install (comma-separated) | no | composer |
| php-extensions | Additional PHP extensions to install (comma-separated) | no | apcu, bcmath, calendar, ctype, curl, date, dom, exif, filter, ftp, gd, gmp, gnupg, hash, iconv, igbinary, intl, json, libxml, mbstring, memcache, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, pdo, pdo_mysql, pdo_sqlite, phar, posix, reflection, session, shmop, simplexml, soap, sockets, sodium, spl, sqlite3, ssh2, standard, sysvsem, sysvshm, timezonedb, tokenizer, xml, xmlreader, xmlwriter, zip, zlib |
| php-coverage | Enable code coverage | no | none |
| wordpress-version | Specify the WordPress version to use (false to skip) | no | latest |
| wordpress-multisite | Enable WordPress multisite (only works with wordpress-version) | no | false |
| wordpress-host | Shorthand for hosting provider (pantheon, vip, or false) | no | vip |
| working-directory | Directory to run the commands in | no | . |
| cache-dependency-path | Path to the dependency file to use for caching | no | composer.lock |
| install-skip | Skip composer install | no | false |
| skip-install | Skip composer install | no | false |
| install-command | Command to run composer install | no | composer install --prefer-dist --no-interaction --no-progress |
| audit-skip | Skip composer audit | no | false |
| skip-audit | Skip composer audit | no | false |
| audit-command | Command to run composer audit | no | composer audit --no-dev --locked --ansi --no-interaction |
| mantle-ci-branch | Branch of Mantle CI scripts to use | no | HEAD |
| test-skip | Skip tests | no | false |
| skip-test | Skip tests | no | false |
| skip-core-test-suite | Skip the installation of the WordPress core test suite. Useful if you are not using the WordPress core testing framework (Mantle Testkit). | no | false |
| skip-wordpress-install | Skip installing WordPress | no | false |
| test-command | Command to run tests | no | composer run-script test |
| build-command | Command to run build | no | "" |
| github-token | GitHub token for accessing private repositories via composer | no | "" |
| skip-services | Skip starting Docker-based services (mysql, redis, memcached) | no | false |
| services-skip | Skip starting Docker-based services (mysql, redis, memcached) | no | false |
Outputs
no outputs