alleyinteractive/Run PHP tests

Setup PHP environment and run install, audit, test, and build commands using Composer

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 14, 2026
License
GPL 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: alleyinteractive/action-test-php@0d6dcd4f0779fb567b88cd0851b90608fcd8c20a # v1.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
php-versionPHP version to usenolatest
php-toolsPHP tools to install (comma-separated)nocomposer
php-extensionsAdditional PHP extensions to install (comma-separated)noapcu, 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-coverageEnable code coveragenonone
wordpress-versionSpecify the WordPress version to use (false to skip)nolatest
wordpress-multisiteEnable WordPress multisite (only works with wordpress-version)nofalse
wordpress-hostShorthand for hosting provider (pantheon, vip, or false)novip
working-directoryDirectory to run the commands inno.
cache-dependency-pathPath to the dependency file to use for cachingnocomposer.lock
install-skipSkip composer installnofalse
skip-installSkip composer installnofalse
install-commandCommand to run composer installnocomposer install --prefer-dist --no-interaction --no-progress
audit-skipSkip composer auditnofalse
skip-auditSkip composer auditnofalse
audit-commandCommand to run composer auditnocomposer audit --no-dev --locked --ansi --no-interaction
mantle-ci-branchBranch of Mantle CI scripts to usenoHEAD
test-skipSkip testsnofalse
skip-testSkip testsnofalse
skip-core-test-suiteSkip the installation of the WordPress core test suite. Useful if you are not using the WordPress core testing framework (Mantle Testkit).nofalse
skip-wordpress-installSkip installing WordPressnofalse
test-commandCommand to run testsnocomposer run-script test
build-commandCommand to run buildno""
github-tokenGitHub token for accessing private repositories via composerno""
skip-servicesSkip starting Docker-based services (mysql, redis, memcached)nofalse
services-skipSkip starting Docker-based services (mysql, redis, memcached)nofalse

no outputs