From 73188b96ed8fde855a3f392079b1acedc6f89c95 Mon Sep 17 00:00:00 2001 From: Ido Berkovich Date: Mon, 3 Jun 2024 22:46:28 +0300 Subject: [PATCH] add github actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d18ce59 --- /dev/null +++ b/.github/workflows/ci.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: + pull_request: + branches: [ "main" ] + push: + branches: [ "main" ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22.3' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...