laravel-ci-mysql

Automate Laravel CI workflows on GitHub Actions with MySQL service containers.

3|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/ai-enhanced-engineer/aiee-skills --skill laravel-ci-mysql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-ci-mysql
Source: https://github.com/ai-enhanced-engineer/aiee-skills/tree/main/skills/laravel-ci-mysql
Command: npx skills add https://github.com/ai-enhanced-engineer/aiee-skills --skill laravel-ci-mysql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires shivammathur/setup-php, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of setting up Laravel CI with MySQL on GitHub Actions, ensuring smooth integration and parity between local development and CI.

Core Features & Use Cases

  • MySQL Service Container: Handles MySQL setup in CI, providing local-dev parity.
  • Env Injection: Configures environment variables without manual .env setup.
  • Multi-Job Workflow: Enables linting, testing, and database setup in separate jobs.
  • Pre-Commit Integration: Ensures code quality through Pint, PHPStan, and PHPUnit integration.
  • Use Case: For developers who want to transition from SQLite to MySQL in CI, achieve local-dev parity, or enforce code quality checks.

Quick Start

Use the laravel-ci-mysql skill in your GitHub Actions workflow to set up a Laravel CI with MySQL.

Frequently Asked Questions about laravel-ci-mysql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a MySQL service container for Laravel CI in GitHub Actions?

To set up a MySQL service container for Laravel CI in GitHub Actions, you configure the service in your workflow file and inject environment variables. This provides local-dev parity and automates database setup without manual .env configuration.

Can I run linting and testing as separate jobs in a Laravel GitHub Actions workflow?

Yes, you can run linting, testing, and database setup as separate jobs in a Laravel GitHub Actions workflow. This multi-job structure isolates code quality checks through Pint, PHPStan, and PHPUnit integration.

Do I need shivammathur/setup-php to run Laravel CI workflows with MySQL?

Yes, shivammathur/setup-php is a required dependency for running Laravel CI workflows with MySQL. It handles the PHP environment setup needed before configuring MySQL service containers and executing code quality checks.

What is the best way to transition Laravel CI from SQLite to MySQL for local-dev parity?

The best way to transition Laravel CI from SQLite to MySQL for local-dev parity is using MySQL service containers with automated environment variable injection. This ensures your CI environment accurately mirrors your local database setup.

How do I integrate pre-commit hooks for Laravel code quality checks in GitHub Actions?

Integrating pre-commit checks for Laravel in GitHub Actions involves configuring Pint, PHPStan, and PHPUnit within your multi-job workflow. This enforces code quality standards automatically before changes are merged.