local-ci

Execute local CI parity commands and pnpm run ci:local jobs.

2.6k|423|Updated Oct 24, 2020
One-click install
npx skills add https://github.com/module-federation/core --skill local-ci-module-federation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-ci
Source: https://github.com/module-federation/core/tree/main/.codex/skills/local-ci
Command: npx skills add https://github.com/module-federation/core --skill local-ci-module-federation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows developers to run the repository's Continuous Integration (CI) parity commands locally, ensuring changes align with the automated checks performed in GitHub Actions before pushing.

Core Features & Use Cases

  • CI Parity Validation: Execute the same job shapes used in GitHub Actions locally.
  • Targeted Job Execution: Run specific CI jobs like build-and-test, devtools, bundle-size, or E2E tests.
  • Use Case: After making a change to a package, run pnpm run ci:local --only=build-and-test to validate that your changes pass all build and test checks locally, mirroring the CI environment.

Quick Start

Use the local-ci skill to run the build-and-test job locally.

Frequently Asked Questions about local-ci

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

FAQPage Schema
How do I run GitHub Actions CI jobs locally before pushing changes?

You can run GitHub Actions CI jobs locally by executing local CI parity commands that mirror automated checks, ensuring your changes align with repository validation before pushing. Use targeted commands like `pnpm run ci:local --only=build-and-test` to validate specific jobs.

What is CI parity validation and when do I need it?

CI parity validation executes the same job shapes used in GitHub Actions locally. You need it after modifying a package to verify that your changes pass all build, test, E2E, and bundle-size checks before pushing to the remote repository.

Do I need pnpm and Turbo to run local CI parity commands?

Yes, running local CI parity commands requires pnpm, Node 20, and Turbo for execution. These tools provide the necessary environment and task orchestration to validate changes against GitHub Actions job shapes locally.

Can I run specific CI jobs like E2E tests or bundle-size checks locally?

Yes, you can run specific CI jobs locally using targeted execution. The local CI supports package, workflow, E2E, Metro, devtools, bundle-size, and build-and-test scenarios, allowing you to validate only the relevant checks for your changes.

What's the best way to validate changes against GitHub Actions job shapes locally?

The best way to validate changes locally is using the local CI parity command, such as `pnpm run ci:local --only=build-and-test`. This mirrors the GitHub Actions environment, executing the same job shapes to catch failures before pushing.

Why does my local CI validation fail when the GitHub Actions job passes?

Local CI validation may fail due to environment differences, missing pnpm or Node 20 dependencies, or uncommitted changes. Ensure your local environment matches the required Turbo and pnpm setup to accurately mirror the GitHub Actions job shapes.