Skip to content

Commit

Permalink
Merge pull request #118 from bmf-san/feature/update-go-version
Browse files Browse the repository at this point in the history
Update go version 1.22.3
  • Loading branch information
bmf-san authored May 9, 2024
2 parents b4f35ce + 108fa37 commit d0e7e93
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 39 deletions.
45 changes: 19 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,24 @@ jobs:
- run:
name: "Run go test"
command: make test
- when:
condition:
or:
- equal: [ '1.21', << parameters.version >> ]
- equal: [ '1.20', << parameters.version >> ]
- equal: [ '1.19', << parameters.version >> ]
steps:
- run:
name: "Install tools"
command: make install-tools
- run:
name: "Run errcheck"
command: make errcheck
- run:
name: "Run go staticcheck"
command: make staticcheck
- run:
name: "Run gosec"
command: make gosec
- run:
name: "Run benchstat"
command: make benchstat
- run:
name: "Run govulncheck"
command: make govulncheck
- run:
name: "Install tools"
command: make install-tools
- run:
name: "Run errcheck"
command: make errcheck
- run:
name: "Run go staticcheck"
command: make staticcheck
- run:
name: "Run gosec"
command: make gosec
- run:
name: "Run benchstat"
command: make benchstat
- run:
name: "Run govulncheck"
command: make govulncheck
- run:
name: Build go
command: go build
Expand All @@ -76,4 +69,4 @@ workflows:
- test:
matrix:
parameters:
version: ["1.21", "1.20", "1.19", "1.18", "1.17", "1.16"]
version: ["1.22"]
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,12 @@ help:

.PHONY: install-tools
install-tools: ## Install staticcheck.
ifeq ($(shell command -v staticcheck 2> /dev/null),)
go install honnef.co/go/tools/cmd/staticcheck@latest
endif
ifeq ($(shell command -v goimports 2> /dev/null),)
go install golang.org/x/tools/cmd/goimports@latest
endif
ifeq ($(shell command -v errcheck 2> /dev/null),)
go install github.com/kisielk/errcheck@latest
endif
ifeq ($(shell command -v gosec 2> /dev/null),)
go install github.com/securego/gosec/v2/cmd/gosec@latest
endif
ifeq ($(shell command -v benchstat 2> /dev/null),)
go install golang.org/x/perf/cmd/benchstat@latest
endif
ifeq ($(shell govulncheck ./... 2> /dev/null),)
go install golang.org/x/vuln/cmd/govulncheck@latest
endif

.PHONY: gofmt
gofmt: ## Run gofmt.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/bmf-san/goblin

go 1.21
go 1.22.3

0 comments on commit d0e7e93

Please sign in to comment.