{"id":20196159,"url":"https://github.com/shaikrasheed99/golang-github-actions-example","last_synced_at":"2026-05-07T13:33:19.150Z","repository":{"id":198037747,"uuid":"699941752","full_name":"shaikrasheed99/golang-github-actions-example","owner":"shaikrasheed99","description":"GitHub Actions example using Golang application","archived":false,"fork":false,"pushed_at":"2023-11-13T04:09:15.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T19:38:53.199Z","etag":null,"topics":["docker","dockerhub","github-actions","go-app","go-application","go-github-actions","golang","golang-app","golang-application"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/shaikrasheed99/golang-github-actions-example","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaikrasheed99.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":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-03T16:29:31.000Z","updated_at":"2023-10-09T14:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"14792d34-5546-47f9-94b6-e4aa84cda2ae","html_url":"https://github.com/shaikrasheed99/golang-github-actions-example","commit_stats":null,"previous_names":["shaikrasheed99/golang-github-actions-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fgolang-github-actions-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fgolang-github-actions-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fgolang-github-actions-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fgolang-github-actions-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaikrasheed99","download_url":"https://codeload.github.com/shaikrasheed99/golang-github-actions-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629770,"owners_count":19993710,"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":["docker","dockerhub","github-actions","go-app","go-application","go-github-actions","golang","golang-app","golang-application"],"created_at":"2024-11-14T04:22:07.039Z","updated_at":"2026-05-07T13:33:19.110Z","avatar_url":"https://github.com/shaikrasheed99.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Actions example using Golang applicaiton\n\n## Jobs created in GitHub actions pipeline\n\n- `build` - used to build the whole application\n- `test` - used to execute the test cases along with checking the test coverage\n- `deploy` - used to deploy the image of this application to [docker hub](https://hub.docker.com/r/shaikrasheed99/golang-github-actions-example)\n\nCI pipeline defined in this file - [pipeline.yaml](.github/workflows/pipeline.yaml)\n\nDockerHub link of this application - [shaikrasheed99/golang-github-actions-example](https://hub.docker.com/r/shaikrasheed99/golang-github-actions-example)\n\n## How to run the application\n\nWe can run this application by two ways\n\n1. Make sure your machine has golang installed in it. \n    - Run the below command to download the code from Github repository to your local machine.\n        ```bash\n        git clone https://github.com/shaikrasheed99/golang-github-actions-example.git\n        ```\n    - Run the below command to move to the application directory.\n        ```bash\n        cd golang-github-actions-example/\n        ``` \n    - Run the below command to install all the dependencies of the application. \n        ```bash\n        go mod tidy\n        ``` \n    - Run the below command to run the application for testing the APIs. \n        ```bash\n        go run .\n        ``` \n\n2. Make sure your machine has docker installed in it. \n    - Run the below command to pull the Image from Dockerhub to your local machine.\n        ```bash\n        docker pull shaikrasheed99/golang-github-actions-example\n        ``` \n    - The Golang application which inside this image is using port 8080.\n    - Run the following command in the terminal to start the container.\n        ```bash\n        docker run -d -p 8080:8080 shaikrasheed99/golang-github-actions-example\n        ``` \n\n## How to test the APIs of application\n\nTotally, we have three simple test APIs\n\n### Test API - 1\n\nRequest `curl --location --request GET 'http://localhost:8080/test1'`\n\nResponse `\"This is first test api\"`\n\n### Test API - 2\n\nRequest `curl --location --request GET 'http://localhost:8080/test2'`\n\nResponse `\"This is second test api\"`\n\n### Test API - 3\n\nRequest `curl --location --request GET 'http://localhost:8080/test3'`\n\nResponse `\"This is third test api\"`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fgolang-github-actions-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaikrasheed99%2Fgolang-github-actions-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fgolang-github-actions-example/lists"}