{"id":26180049,"url":"https://github.com/jellydn/github-action-locally","last_synced_at":"2025-06-15T13:33:03.803Z","repository":{"id":195138034,"uuid":"692332252","full_name":"jellydn/github-action-locally","owner":"jellydn","description":"How to run GitHub Action locally with act.","archived":false,"fork":false,"pushed_at":"2024-10-01T08:30:09.000Z","size":13,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T10:50:30.930Z","etag":null,"topics":["act","github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jellydn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-16T06:42:26.000Z","updated_at":"2025-02-04T01:26:14.000Z","dependencies_parsed_at":"2023-12-25T01:45:31.102Z","dependency_job_id":null,"html_url":"https://github.com/jellydn/github-action-locally","commit_stats":null,"previous_names":["jellydn/how-to-run-github-action-locally-with-act","jellydn/github-action-locally"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fgithub-action-locally","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fgithub-action-locally/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fgithub-action-locally/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fgithub-action-locally/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellydn","download_url":"https://codeload.github.com/jellydn/github-action-locally/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975305,"owners_count":21192197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["act","github-actions"],"created_at":"2025-03-11T21:54:19.141Z","updated_at":"2025-04-14T22:43:38.838Z","avatar_url":"https://github.com/jellydn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to github-action-locally 👋\n\nHow to run GitHub Action locally with `act`.\n\n[![IT Man - Running GitHub Actions Locally: A Complete Guide with act [Vietnamese]](https://i.ytimg.com/vi/nklNK13G7u4/hqdefault.jpg)](https://www.youtube.com/watch?v=nklNK13G7u4)\n\n## Sources\n\n- [Bun — A fast all-in-one JavaScript runtime](https://bun.sh/)\n- [Introduction - act - User Guide](https://nektosact.com/introduction.html)\n- [OrbStack · Fast, light, simple Docker \u0026 Linux on macOS](https://orbstack.dev/)\n\n## Prerequisites\n\n- Docker or a compatible container engine (e.g., OrbStack, Podman)\n- `act` installed. You can install it via Homebrew:\n  ```bash\n  brew install act\n  ```\n\n## Usages\n\nClone your repository to your local machine:\n```sh\ngh repo clone jellydn/github-action-locally\n```\nThen run \n```sh\nbun install\n```\n\n### Basic Usage\n\nRun all GitHub Action workflows defined in your `.github/workflows/` folder:\n\n```bash\nact\n```\n\n### List all jobs\n\n```bash\nact -l\n```\n\n### Running a Specific Job\n\nRun a specific job from your workflow file:\n\n```bash\nact -j \u003cjob-name\u003e\n```\n\n### Using a Custom Runner\n\nSpecify a custom Docker image for the runner:\n\n```bash\nact -P \u003cplatform\u003e=\u003cdocker-image\u003e\n```\n\nExample:\n\n```bash\nact -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04\n```\n\n### Using a Different Container Engine\n\nIf you prefer to use [Podman](https://podman-desktop.io/):\n\n```bash\nexport DOCKER_HOST='unix:///var/run/podman/podman.sock'\nact\n```\n\nOr, with a remote Docker engine:\n\n```bash\nDOCKER_HOST='ssh://user@host' act\n```\n\nEven though if you don't know where is the Docker socket, you can use the following:\n\n```bash\ndocker context ls --format json | jq\n```\n\nThen you would have similar output:\n```bash\n{\n  \"Current\": false,\n  \"Description\": \"Current DOCKER_HOST based configuration\",\n  \"DockerEndpoint\": \"unix:///var/run/docker.sock\",\n  \"Error\": \"\",\n  \"Name\": \"default\"\n}\n{\n  \"Current\": true,\n  \"Description\": \"OrbStack\",\n  \"DockerEndpoint\": \"unix:///Users/huynhdung/.orbstack/run/docker.sock\",\n  \"Error\": \"\",\n  \"Name\": \"orbstack\"\n}\n```\n\n## Troubleshooting\n\nIf you encounter issues, please refer to the official [`act` User Guide](https://nektosact.com/introduction.html) or open an issue in this repository.\n\n## References\n\n[![IT Man - Talk #34 - Bye Bye #Docker Desktop [Vietnamese]](https://i.ytimg.com/vi/llThjxFb7KU/mqdefault.jpg)](https://www.youtube.com/watch?v=llThjxFb7KU)\n\n## Author\n\n👤 **Huynh Duc Dung @jellydn**\n\n- Website: https://productsway.com/\n- Twitter: [@jellydn](https://twitter.com/jellydn)\n- Github: [@jellydn](https://github.com/jellydn)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydn%2Fgithub-action-locally","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellydn%2Fgithub-action-locally","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydn%2Fgithub-action-locally/lists"}