From 1de5333ded98786ae837d4dab07a0aa959cc739d Mon Sep 17 00:00:00 2001 From: lakshit verma Date: Fri, 21 Aug 2026 22:26:59 +0530 Subject: [PATCH] ci: build, vet, race tests, and govulncheck on push and PR --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..6bcbc5d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache: true + + - name: Build + run: go build ./... + + - name: Vet + run: go vet ./... + + - name: Test + run: go test -race -count=1 ./... + + - name: Govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: "" + go-package-input: ./...