WRKFLW
WRKFLW is a powerful command-line tool for validating and executing GitHub Actions workflows locally, without requiring a full GitHub environment. It helps developers test their workflows directly on their machines before pushing changes to GitHub.

Features
- TUI Interface: A full-featured terminal user interface for managing and monitoring workflow executions
- Validate Workflow Files: Check for syntax errors and common mistakes in GitHub Actions workflow files
- Execute Workflows Locally: Run workflows directly on your machine using Docker containers
- Emulation Mode: Optional execution without Docker by emulating the container environment locally
- Job Dependency Resolution: Automatically determines the correct execution order based on job dependencies
- Docker Integration: Execute workflow steps in isolated Docker containers with proper environment setup
- GitHub Context: Provides GitHub-like environment variables and workflow commands
- Multiple Runtime Modes: Choose between Docker containers or local emulation for maximum flexibility
- Action Support: Supports various GitHub Actions types:
- Docker container actions
- JavaScript actions
- Composite actions
- Local actions
- Special Action Handling: Native handling for commonly used actions like
actions/checkout - Output Capturing: View logs, step outputs, and execution details
- Parallel Job Execution: Runs independent jobs in parallel for faster workflow execution
Installation
The recommended way to install wrkflw is using Rust's package manager, Cargo:
Using Cargo Install (Recommended)
From Source
Clone the repository and build using Cargo:
The compiled binary will be available at target/release/wrkflw.
Usage
The simplest way to use WRKFLW is to navigate to your project's root directory and run:
This will automatically detect and load all workflows from .github/workflows directory into the TUI interface.
WRKFLW also provides three main command modes:
Validating Workflow Files
# Validate all workflow files in the default location (.github/workflows)
# Validate a specific workflow file
# Validate workflows in a specific directory
# Validate with verbose output
Running Workflows in CLI Mode
# Run a workflow with Docker (default)
# Run a workflow in emulation mode (without Docker)
# Run with verbose output
Using the TUI Interface
# Open TUI with workflows from the default directory
# Open TUI with a specific directory of workflows
# Open TUI with a specific workflow pre-selected
# Open TUI in emulation mode
TUI Controls
The terminal user interface provides an interactive way to manage workflows:
- Tab / 1-4: Switch between tabs (Workflows, Execution, Logs, Help)
- Up/Down or j/k: Navigate lists
- Space: Toggle workflow selection
- Enter: Run selected workflow / View job details
- r: Run all selected workflows
- a: Select all workflows
- n: Deselect all workflows
- e: Toggle between Docker and Emulation mode
- v: Toggle between Execution and Validation mode
- Esc: Back / Exit detailed view
- q: Quit application
Examples
Validating a Workflow
============================================================
============================================================
)
Running a Workflow
============================================================
Quick TUI Startup
# Navigate to project root and run wrkflw
# This will automatically load .github/workflows files into the TUI
Requirements
- Rust 1.67 or later
- Docker (optional, for container-based execution)
- When not using Docker, the emulation mode can run workflows using your local system tools
How It Works
WRKFLW parses your GitHub Actions workflow files and executes each job and step in the correct order. For Docker mode, it creates containers that closely match GitHub's runner environments. The workflow execution process:
- Parsing: Reads and validates the workflow YAML structure
- Dependency Resolution: Creates an execution plan based on job dependencies
- Environment Setup: Prepares GitHub-like environment variables and context
- Execution: Runs each job and step either in Docker containers or through local emulation
- Monitoring: Tracks progress and captures outputs in the TUI or command line
Advanced Features
GitHub Environment Files Support
WRKFLW supports GitHub's environment files and special commands:
GITHUB_OUTPUT: For storing step outputs (echo "result=value" >> $GITHUB_OUTPUT)GITHUB_ENV: For setting environment variables (echo "VAR=value" >> $GITHUB_ENV)GITHUB_PATH: For modifying the PATH (echo "/path/to/dir" >> $GITHUB_PATH)GITHUB_STEP_SUMMARY: For creating step summaries (echo "# Summary" >> $GITHUB_STEP_SUMMARY)
Composite Actions
WRKFLW supports composite actions, which are actions made up of multiple steps. This includes:
- Local composite actions referenced with
./path/to/action - Remote composite actions from GitHub repositories
- Nested composite actions (composite actions that use other actions)
Container Cleanup
WRKFLW automatically cleans up any Docker containers created during workflow execution, even if the process is interrupted with Ctrl+C.
Limitations
- Some GitHub-specific functionality might not work exactly as it does on GitHub
- Complex matrix builds with very large matrices may have performance limitations
- Actions that require specific GitHub environment features may need customization
- Network-isolated actions might need internet connectivity configured differently
License
This project is licensed under the MIT License - see the LICENSE file for details.