ci: build, vet, race tests, and govulncheck on push and PR

This commit is contained in:
lakshit verma 2026-08-21 22:26:59 +05:30
parent ad4d81fe50
commit 1de5333ded
No known key found for this signature in database

35
.github/workflows/ci.yml vendored Normal file
View file

@ -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: ./...