GitHub Action to test Laravel package and library compatibility using PHPUnit.
This action will automatically check out your code.
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: windows-2022 # The Operating System where the test runs, the default is `ubuntu-latest`
php_version: 8.3 # The PHP version where the test runs, the default is `8.2`
php_extensions: pdo_sqlite,sqlite3 # The PHP extension enabled for the test, separated by comma
laravel_version: 10.* # The Laravel framework version where the test runs, the default is `^11.0`
branch: main # The branch name, tag name, or git reference checksum to check out
laravel_install_args: --prefer-dist # The arguments passed to Composer when installing Laravel framework, the default is `--prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins`
package_install_args: --prefer-dist --no-progress # The arguments passed to Composer when installing the package, the default is `--prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins`
phpunit_args: --filter some_test # The arguments passed to PHPUnit when running the test
shell_name: pwsh # The shell name used to run the test, the default is `bash`
The scripts and documentation in this project are released under the MIT License.