{"id":19834965,"url":"https://github.com/j0hn-b/k3d_act","last_synced_at":"2026-04-06T08:31:49.619Z","repository":{"id":110874020,"uuid":"328721658","full_name":"J0hn-B/k3d_act","owner":"J0hn-B","description":"Build and Test github actions in a CI-agnostic way","archived":false,"fork":false,"pushed_at":"2021-01-12T15:49:46.000Z","size":2216,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T21:51:02.904Z","etag":null,"topics":["bash","ci-cd","devops","docker","github-actions","gitops","k3d"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/J0hn-B.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-11T16:17:28.000Z","updated_at":"2022-04-21T08:55:43.000Z","dependencies_parsed_at":"2024-03-10T02:30:27.512Z","dependency_job_id":null,"html_url":"https://github.com/J0hn-B/k3d_act","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/J0hn-B/k3d_act","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fk3d_act","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fk3d_act/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fk3d_act/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fk3d_act/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J0hn-B","download_url":"https://codeload.github.com/J0hn-B/k3d_act/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fk3d_act/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bash","ci-cd","devops","docker","github-actions","gitops","k3d"],"created_at":"2024-11-12T12:06:03.806Z","updated_at":"2026-04-06T08:31:49.610Z","avatar_url":"https://github.com/J0hn-B.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to run GitHub Actions workflows locally?\n\n![Test with K3d](https://github.com/J0hn-B/k3d_act/workflows/Test%20with%20K3d/badge.svg)\n\nAt the time of writing the most preferred method is [nektos/act](https://github.com/nektos/act)  \nAct is a great tool but it is not perfect, not yet.  \nBear in mind, there is strong possibility you will plan to migrate from GitHub Actions\nto something new in the next 24/36 months.\n\nWhat you need is to avoid a vendor lock-in by using the vendor-specific tools/language they provide.\nThe goal is to run the same configuration locally and in GitHub Actions with zero changes and been able to migrate on another tool of choice in the future without re-writing everything.\n\n**Do this:** ![image](images/bash.png)\n**Not this:** ![image](images/github_actions.png)\n\n## Run GitHub Actions workflows locally\n\nCreate a k3d environment and deploy Drupal as an example application:  \n```act -r``` will deploy the cluster the first time.  \n\u003e The next time you run ```act -r``` your cluster will update.\n\n![image](images/act__.gif)  \n\n![image](images/act_docker.gif)\n\n## Install\n\n\u003e You must have docker installed.\n\n1) Install act: \u003chttps://github.com/nektos/act#installation\u003e\n\n2) Fork or git clone the repo:  \n    ```git clone https://github.com/J0hn-B/k3d_act.git```  \n\n3) ```cd k3d_act```  \n\n4) ```act -r```  deploy for first time\n\n5) From your editor go to ```.github/workflows/k3d_runner.yml``` and uncomment **Install Helm charts** action.  \n\n6) ```act -r```  update the cluster\n\n7) Push to your repo and check the actions tab.\n\n![github_action_pass](images/github_action_pass.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0hn-b%2Fk3d_act","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj0hn-b%2Fk3d_act","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0hn-b%2Fk3d_act/lists"}