Skip to content

Add script to run all GitHub Actions workflows locally#11

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/run-github-actions-locally
Draft

Add script to run all GitHub Actions workflows locally#11
Copilot wants to merge 2 commits intomainfrom
copilot/run-github-actions-locally

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

No existing way to run the repository's CI workflows locally before pushing.

Changes

  • run_workflows_locally.sh – new executable script at the repo root that:
    • Auto-installs Docker (Linux: get.docker.com, macOS: Homebrew cask) and act (official install script / Homebrew) if not already present

    • Starts the Docker daemon if it isn't running

    • Runs each workflow against the catthehacker/ubuntu:act-latest image with the appropriate event trigger:

      Workflow Event
      test.yml push
      pylint.yml push
      integration-tests.yml push
      hassfest.yaml push
      validate.yaml workflow_dispatch
      release.yaml skipped by default
    • release.yaml is excluded by default since it requires a real GITHUB_TOKEN with write permissions and uploads to an actual GitHub release; opt in with --include-release

    • Prints a colour-coded pass/skip/fail summary

Usage

./run_workflows_locally.sh                   # run all except release
./run_workflows_locally.sh --include-release # run everything

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Add Bash script to run GitHub workflows locally Add script to run all GitHub Actions workflows locally Mar 23, 2026
Copilot AI requested a review from gensyn March 23, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants