From dac5ddd1cb2d3be0f6bbd6651ff17da077e02844 Mon Sep 17 00:00:00 2001 From: abbass Date: Fri, 23 May 2025 19:41:43 +0200 Subject: [PATCH] chore: add GHA --- .github/workflows/go-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/go-ci.yml diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml new file mode 100644 index 0000000..c6c434e --- /dev/null +++ b/.github/workflows/go-ci.yml @@ -0,0 +1,26 @@ +name: Go Build and Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...