Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,32 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.4"
go-version: "1.26.9"
cache: true
- run: go build ./...
- run: go vet ./...
- run: go test ./... -count=1 -race -coverprofile=coverage.out
- name: Coverage summary
run: go tool cover -func=coverage.out | tail -1

govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.9"
cache: true
- run: go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./...

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.9"
cache: true
- uses: golangci/golangci-lint-action@v9
with:
version: v2.15.0
26 changes: 26 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "2"

linters:
default: none
enable:
- govet
- staticcheck
- ineffassign
- errcheck
settings:
errcheck:
# Best-effort cleanup on error/shutdown paths, where there is no
# caller to report to; checked closes on the happy path stay checked.
exclude-functions:
- (*os.File).Close
- (io.Closer).Close
- (*github.com/shaikn6/lethe/internal/memory.journal).close
- (github.com/shaikn6/lethe/internal/memory.journalFile).Close
- os.Remove
- (*encoding/json.Encoder).Encode
exclusions:
rules:
# Test setup/teardown does not need every return value checked.
- path: _test\.go
linters:
- errcheck
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/shaikn6/lethe

go 1.26.4
go 1.26.9

require github.com/twmb/franz-go v1.22.1

Expand Down
Loading