From 2ff126840d2143f981894f42b6c3320b439f27c6 Mon Sep 17 00:00:00 2001 From: optclblast <123711915+optclblast@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:02:12 +0300 Subject: [PATCH] ci setup --- .github/workflows/go.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..3490eb1 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,29 @@ +# 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.22.3' + + - name: test + run: go test -v ./... + + - name: lint + run: make get.tools && make lint + +