From 5f19c8168bc62ef84c647da8efd7188c245b88b1 Mon Sep 17 00:00:00 2001 From: nishmasbull-bit Date: Wed, 12 Aug 2026 12:21:18 +0530 Subject: [PATCH 1/2] Add GitHub Actions workflow for Go project This workflow builds and tests a Go project on push and pull request events. --- .github/workflows/go.ymnisha | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.ymnisha diff --git a/.github/workflows/go.ymnisha b/.github/workflows/go.ymnisha new file mode 100644 index 0000000000..0b443f376a --- /dev/null +++ b/.github/workflows/go.ymnisha @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From 30fd75372e8c5a0381b919096b226e1b6ed1b33c Mon Sep 17 00:00:00 2001 From: nishmasbull-bit Date: Wed, 12 Aug 2026 15:44:28 +0530 Subject: [PATCH 2/2] Add Docker Image CI workflow --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000000..3f53646d13 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)