mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 03:23:59 +00:00
2.7 KiB
2.7 KiB
ivuorinen/actions/php-laravel-phpunit
Laravel Setup and Composer test
Description
Setup PHP, install dependencies, generate key, create database and run composer test
Inputs
| name | description | required | default |
|---|---|---|---|
php-version |
PHP Version to use, see https://github.com/marketplace/actions/setup-php-action#php-version-optional |
false |
latest |
php-version-file |
PHP Version file to use, see https://github.com/marketplace/actions/setup-php-action#php-version-file-optional |
false |
.php-version |
extensions |
PHP extensions to install, see https://github.com/marketplace/actions/setup-php-action#extensions-optional |
false |
mbstring, intl, json, pdo_sqlite, sqlite3 |
coverage |
Specify code-coverage driver, see https://github.com/marketplace/actions/setup-php-action#coverage-optional |
false |
none |
Outputs
| name | description |
|---|---|
php-version |
The PHP version that was setup |
php-version-file |
The PHP version file that was used |
extensions |
The PHP extensions that were installed |
coverage |
The code-coverage driver that was setup |
Runs
This action is a composite action.
Usage
- uses: ivuorinen/actions/php-laravel-phpunit@main
with:
php-version:
# PHP Version to use, see https://github.com/marketplace/actions/setup-php-action#php-version-optional
#
# Required: false
# Default: latest
php-version-file:
# PHP Version file to use, see https://github.com/marketplace/actions/setup-php-action#php-version-file-optional
#
# Required: false
# Default: .php-version
extensions:
# PHP extensions to install, see https://github.com/marketplace/actions/setup-php-action#extensions-optional
#
# Required: false
# Default: mbstring, intl, json, pdo_sqlite, sqlite3
coverage:
# Specify code-coverage driver, see https://github.com/marketplace/actions/setup-php-action#coverage-optional
#
# Required: false
# Default: none