Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matriphe/laravel-pkg-test-action

GitHub Action to test Laravel package and library compatibility using PHPUnit
https://github.com/matriphe/laravel-pkg-test-action

hacktoberfest laravel phpunit testing

Last synced: 26 days ago
JSON representation

GitHub Action to test Laravel package and library compatibility using PHPUnit

Awesome Lists containing this project

README

        

# Laravel Package Test Action

GitHub Action to test Laravel package and library compatibility using PHPUnit.

## Usage

This action will automatically check out your code.

```yaml
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`
```

## License

The scripts and documentation in this project are released under the [MIT License](LICENSE).