From ffa8738946e9006d72cdc6fc186bb3db40922001 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Mon, 9 Mar 2026 05:50:29 +0000 Subject: [PATCH] ci: add Go test and lint workflow --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..4757bd7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["1.26"] + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: Build + run: | + go build -v ./... + go build -v ./cmd/pb/ + + - name: Vet + run: go vet ./... + + - name: Staticcheck + uses: dominikh/staticcheck-action@v1 + with: + version: latest + + - name: Test + run: go test -race -v ./...