From b6043dd3cee46b225836ea4fd0901662ba3a1aae Mon Sep 17 00:00:00 2001 From: Josue Giron Date: Sat, 21 Nov 2026 16:02:03 +0000 Subject: [PATCH] ci: run fmt, vet, race tests and govulncheck Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..3a50d83 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: ci + +on: + push: + branches: [master] + pull_request: + +permissions: + contents: read + +jobs: + test: + strategy: + fail-fast: false + matrix: + go: [oldstable, stable] + runs-on: ubuntu-latest + env: + GOTOOLCHAIN: local + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + check-latest: true + - name: gofmt (root) + run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; } + - name: vet (root) + run: go vet ./... + - name: test (root) + run: go test -race -cover ./... + - name: govulncheck (root) + run: go run golang.org/x/vuln/cmd/govulncheck@v1.10.0 ./...