-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from bytemare/renovate/reconfigure
Update dependencies
- Loading branch information
Showing
11 changed files
with
130 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
GH_ACTIONS = workflows | ||
|
||
.PHONY: update | ||
update: | ||
@echo "Updating dependencies..." | ||
@$(shell cd ../ go get -u ../...) | ||
@cd ../ && go get -u | ||
@pwd | ||
@go mod tidy | ||
@echo "Updating Github Actions pins..." | ||
@$(foreach file, $(wildcard $(GH_ACTIONS)/*.yml), pin-github-action $(file);) | ||
|
||
.PHONY: update-linters | ||
update-linters: | ||
@echo "Updating linters..." | ||
@go get -u mvdan.cc/gofumpt@latest github.com/daixiang0/gci github.com/segmentio/golines@latest | ||
@go install mvdan.cc/gofumpt@latest | ||
@go install github.com/daixiang0/gci@latest | ||
@go install github.com/segmentio/golines@latest | ||
@go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest | ||
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin | ||
|
||
.PHONY: fmt | ||
fmt: | ||
@echo "Formatting ..." | ||
@go mod tidy | ||
@go fmt ./... | ||
@golines -m 120 -t 4 -w . | ||
@gofumpt -w -extra . | ||
@gci write --Section Standard --Section Default --Section "Prefix($(shell go list -m))" ../ | ||
@go fmt ../... | ||
@golines -m 120 -t 4 -w ../ | ||
@gofumpt -w -extra ../ | ||
@gci write -s Standard -s Default -s "Prefix($(shell go list -m))" ../ | ||
@fieldalignment -fix ../... | ||
|
||
.PHONY: license | ||
license: | ||
@echo "Checking License headers ..." | ||
@if addlicense -check -v -f licence-header.tmpl ../*; then echo "License headers OK"; else return 1; fi; | ||
@if addlicense -check -v -skip yaml -f licence-header.tmpl ../*; then echo "License headers OK"; else return 1; fi; | ||
|
||
.PHONY: lint | ||
lint: license | ||
lint: fmt license | ||
@echo "Linting ..." | ||
@if golangci-lint run --config=.golangci.yml ../...; then echo "Linting OK"; else return 1; fi; | ||
|
||
.PHONY: test | ||
test: | ||
@echo "Running all tests ..." | ||
@go test -v ../... | ||
@go test -v -vet=all ../... | ||
|
||
.PHONY: cover | ||
cover: | ||
@echo "Testing with coverage ..." | ||
@go test -v -race -covermode=atomic -coverpkg=../... -coverprofile=../coverage.out ../... | ||
@go test -v -race -covermode=atomic -coverpkg=../... -coverprofile=./coverage.out ../... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>bytemare/renovate-config", | ||
"config:recommended" | ||
"github>bytemare/renovate-config" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ | |
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module github.com/bytemare/ksf | ||
|
||
go 1.19 | ||
go 1.22.2 | ||
|
||
require golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa | ||
require golang.org/x/crypto v0.22.0 | ||
|
||
require golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect | ||
require golang.org/x/sys v0.19.0 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa h1:zuSxTR4o9y82ebqCUJYNGJbGPo6sKVl54f/TVDObg1c= | ||
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||
golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= | ||
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= | ||
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= | ||
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters