From ca14b1cf6671d5b6adaf1aaaab6c4e05e60e9406 Mon Sep 17 00:00:00 2001 From: Chinna Reddy Date: Fri, 12 Dec 2025 08:50:27 -0600 Subject: [PATCH 1/2] Add GitHub Actions workflow for Go project This workflow automates the build and test process for Go projects on push and pull request events to the main branch. --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0b443f3 --- /dev/null +++ b/.github/workflows/go.yml @@ -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 bd716090c6a529e5b0f4afdd18c1d105fef2b6d3 Mon Sep 17 00:00:00 2001 From: Chinna Reddy Date: Fri, 12 Dec 2025 08:54:32 -0600 Subject: [PATCH 2/2] Update Go version in GitHub Actions workflow --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b443f3..4b0734c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.24.2' - name: Build run: go build -v ./...