ci: add minimal CI workflow (build + short test + vet + govulncheck)

Adds GitHub Actions CI on push to main/dev + PRs:
- go build ./...
- go test -count=1 -short -timeout 300s ./...
- go vet ./...
- govulncheck (non-blocking, reports advisories)

GOWORK=off per repo convention.
This commit is contained in:
Hanzo AI
2026-05-21 12:26:27 -07:00
parent 56bf4da116
commit 6f72e47ce4
+45
View File
@@ -0,0 +1,45 @@
name: CI
on:
push:
branches: [main, dev]
tags: ['v*']
pull_request:
branches: [main, dev]
permissions:
contents: read
env:
GOWORK: off
jobs:
test:
name: Build + Test (linux/arm64 + linux/amd64 stub)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Build
run: go build ./...
- name: Test (short)
run: go test -count=1 -short -timeout 300s ./...
- name: Vet
run: go vet ./...
govulncheck:
name: govulncheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
- run: govulncheck ./... || true