{"id":13473918,"url":"https://github.com/cedrickring/golang-action","last_synced_at":"2025-10-05T23:31:29.683Z","repository":{"id":47168606,"uuid":"164154067","full_name":"cedrickring/golang-action","owner":"cedrickring","description":"A GitHub Action to run Go commands","archived":true,"fork":false,"pushed_at":"2021-09-10T07:54:28.000Z","size":1153,"stargazers_count":134,"open_issues_count":3,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-03T01:03:23.270Z","etag":null,"topics":["action","ci","github-actions","golang","golang-action"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedrickring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2019-01-04T20:57:40.000Z","updated_at":"2024-10-07T21:43:32.000Z","dependencies_parsed_at":"2023-01-11T17:22:58.379Z","dependency_job_id":null,"html_url":"https://github.com/cedrickring/golang-action","commit_stats":{"total_commits":59,"total_committers":11,"mean_commits":5.363636363636363,"dds":0.6610169491525424,"last_synced_commit":"460e91efd2100618e7f4d22c29288422c926986c"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fgolang-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fgolang-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fgolang-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fgolang-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedrickring","download_url":"https://codeload.github.com/cedrickring/golang-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235461364,"owners_count":18994067,"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":["action","ci","github-actions","golang","golang-action"],"created_at":"2024-07-31T16:01:08.017Z","updated_at":"2025-10-05T23:31:29.278Z","avatar_url":"https://github.com/cedrickring.png","language":"Shell","funding_links":[],"categories":["Community Resources","Shell","Uncategorized"],"sub_categories":["Collection of Actions","Uncategorized"],"readme":"[![](https://img.shields.io/github/release/cedrickring/golang-action.svg)](https://github.com/cedrickring/golang-action/releases/latest) [![Actions Status](https://github.com/cedrickring/golang-action/workflows/Build%20on%20Push/badge.svg)](https://github.com/cedrickring/golang-action/actions)\n\n**IMPORTANT**: This action will **no longer be maintained** by myself and thus will not support versions newer than Golang 1.16. I highly recommend using the [offical actions/setup-go action](https://github.com/actions/setup-go) which does exactly the same as this action (+ with some more features). Originally this action was helpful when there was the requirement to properly place go projects in the `$GOPATH`. As this is no longer needed, setting up the proper go version is all you need. However I will kindly review and approve PRs with bugfixes only.\n\n# Golang Action\n\nThis Action allows you to run Go commands with your code. It will automatically setup your workspace (`~/go/src/github.com/\u003cyour-name\u003e/\u003crepo\u003e`) before the command is run.\n\n## How to use\n\nCreate a `workflow.yaml` file in `.github/workflows` with the following contents:\n```yaml\non: push\nname: My cool Action\njobs:\n  checks:\n    name: run\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n\n    - name: run\n      uses: cedrickring/golang-action@1.6.0\n```\n\n\nIf no args are specified and a `Makefile` is detected, this action will run `make`. Otherwise `go test` and `go build` will be run.\nTo run a custom command, just use:\n```yaml\nsteps:\n- name: Run custom command\n  uses: cedrickring/golang-action@1.6.0\n  with:\n    args: make my-target\n```\n\nIf your repository's `import` name is different from the path on GitHub,\nprovide the `import` name by adding an environment variable\n`IMPORT=import/name`.  This may be useful if you have forked an open\nsource Go project:\n```yaml\nsteps:\n- name: Run with custom import path\n  uses: cedrickring/golang-action@1.6.0\n  env:\n    IMPORT: \"root/repo\"\n```\n\n\nTo use Go Modules add `GO111MODULE=on` to the step:\n```yaml\nsteps:\n- name: Go Modules\n  uses: cedrickring/golang-action@1.6.0\n  env:\n    GO111MODULE: \"on\"\n```\n\n\nIf your go project is not located at the root of the repo you can also specify environment variable `PROJECT_PATH`:\n```yaml\nsteps:\n- name: Custom project path\n  uses: cedrickring/golang-action@1.6.0\n  env:\n    PROJECT_PATH: \"./path/in/my/project\"\n```\n\nTo use a specific golang version (1.10, 1.11, 1.12, 1.13, 1.14, 1.15), defaults to the latest version:\n```yaml\nsteps:\n- name: Use Go 1.11\n  uses: cedrickring/golang-action/go1.11@1.6.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickring%2Fgolang-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrickring%2Fgolang-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickring%2Fgolang-action/lists"}