From f112933403ce86e898e920a72b4f96a432f2abf4 Mon Sep 17 00:00:00 2001 From: Toader Sebastian Date: Mon, 29 Sep 2025 11:46:22 +0200 Subject: [PATCH] Create github workflow Added github workflow config Signed-off-by: Toader Sebastian --- .github/workflows/go.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..dd44257 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,36 @@ +# 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@v5 + with: + go-version-file: go.mod + - name: vet + run: make vet + + - name: fmt + run: make fmt + + - name: golangci-lint + uses: golangci/golangci-lint-action@v7 + with: + version: v2.0 + + - name: Build + run: go build -v ./... +