Skip to content

Commit

Permalink
chore: go 1.21 support (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Oct 31, 2023
1 parent 4e1d9c4 commit babb921
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
go-version: [ 1.19, "1.20" ]
go-version: [ "1.20", "1.21" ]
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.51.0
Expand Down
24 changes: 23 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
include github.com/hamba/make/golang
# Format all files
fmt:
@echo "==> Formatting source"
@gofmt -s -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
@echo "==> Done"
.PHONY: fmt

# Tidy the go.mod file
tidy:
@echo "==> Cleaning go.mod"
@go mod tidy
@echo "==> Done"
.PHONY: tidy

# Run all tests
test:
@go test -cover -race ./...
.PHONY: test

# Lint the project
lint:
@golangci-lint run ./...
.PHONY: lint

# Run benchmarks
bench:
Expand Down

0 comments on commit babb921

Please sign in to comment.