m-j-smith/laravel-ci-config
Composer 安装命令:
composer require m-j-smith/laravel-ci-config
包简介
A minimal GitHub Actions CI setup for Laravel projects.
README 文档
README
A minimal GitHub Actions CI setup for Laravel projects.
What's included
-
Test runner via
php artisan testusing SQLite in-memory database (MySQL service not required). Compatible with both Pest and PHPUnit. -
Laravel Pint code style check using the
laravelpreset. -
Separate jobs so tests and style report independently.
Required Project Config
- PHP 8.2+
- Laravel 12+
.env.example
Ensure your .env.example includes:
APP_KEY= DB_CONNECTION=sqlite DB_DATABASE=:memory:
phpunit.xml
Ensure the following are uncommented in the <php> section:
<env name="DB_CONNECTION" value="sqlite"/> <env name="DB_DATABASE" value=":memory:"/>
Installation
- Install the package via Composer into your development dependencies:
composer require m-j-smith/laravel-ci-config --dev
- Install the GitHub Actions CI workflow and Pint config into your project:
php artisan ci:install
This will add the following files to your project:
.github/
└── workflows/
└── ci.yml
pint.json
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-01