From 2468c6d077b437ca9a09e545b8d50e3e532de2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Krzy=C5=BCanowski?= <30776840+originalmk@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:15:38 +0200 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..a359bcd --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,34 @@ +# 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: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Golangci-lint + uses: golangci/golangci-lint-action@v6.0.1 + + - name: Go Coverage + uses: gwatts/go-coverage-action@v2.0.0 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...