ci-schema-invariant-gate

Enforce database migration, seeder, and test order in CI pipelines.

2.3k|769|Updated Jan 14, 2016
One-click install
npx skills add https://github.com/Bottelet/DaybydayCRM --skill ci-schema-invariant-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ci-schema-invariant-gate
Source: https://github.com/Bottelet/DaybydayCRM/tree/main/.claude/skills/ci-schema-invariant-gate
Command: npx skills add https://github.com/Bottelet/DaybydayCRM --skill ci-schema-invariant-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures the correct execution order of migrations, seeders, and tests in continuous integration (CI) pipelines, preventing workflow disruptions.

Core Features & Use Cases

  • CI Execution Order: Forces a strict sequence for database migrations, seeders, and tests.
  • CI Pipeline Ordering: Ensures that database setup is complete before running tests.
  • Seed Before Tests: Ensures that seed data runs before test execution for accurate results.
  • Use Case: For CI environments where the order of database operations is crucial for test reliability and data integrity.

Quick Start

Run the 'ci-schema-invariant-gate' skill to enforce the execution order of database setup and test execution in your CI pipeline.

Frequently Asked Questions about ci-schema-invariant-gate

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

FAQPage Schema
How do I enforce database migration order before running tests in a CI pipeline?

You can enforce the CI execution order for database migrations, seeders, and tests using a pipeline gate. This ensures database setup is fully completed before test execution to prevent workflow disruptions.

Why do database tests fail in CI when seeders run out of order?

Database tests fail when seeders run out of order because the required test data is missing. Enforcing a strict CI pipeline sequence ensures seed data runs before test execution for accurate and reliable results.

What is the best way to automate database setup and test execution sequence in CI?

The best way to automate database setup and test execution sequence is by enforcing a strict CI pipeline ordering. This guarantees migrations and seeders are completed before tests run, ensuring data integrity.

Do I need a PHP environment to enforce CI pipeline ordering for database migrations?

Yes, you need a PHP environment with artisan CLI access to enforce CI pipeline ordering for database migrations. The process relies on artisan commands to execute migrations and seeders before tests run.

How does a CI schema invariant gate improve test reliability?

A CI schema invariant gate improves test reliability by forcing a strict sequence for database migrations, seeders, and tests. This ensures tests always run against a fully prepared and seeded database setup.