From 7ab5b867de533b3c8552bf4d1b01367cfdb1dc87 Mon Sep 17 00:00:00 2001 From: Nemanja Kajzer Date: Wed, 6 May 2026 13:49:00 +0200 Subject: [PATCH] Add simple build check on PR to main branch --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..f927bdf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.22' + + - name: Install dependencies + run: go mod download + + - name: Build + run: go build ./... + + - name: Test + run: go test -race ./... \ No newline at end of file