mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: format a bit the list of tools
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
Update Nix dependency hashes / Update dependency hashes (push) Has been cancelled
Update Go toolchain / Update Go toolchain (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (asn2org) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (iana-assignments) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (nixpkgs) (push) Has been cancelled
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
Update Nix dependency hashes / Update dependency hashes (push) Has been cancelled
Update Go toolchain / Update Go toolchain (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (asn2org) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (iana-assignments) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (nixpkgs) (push) Has been cancelled
This commit is contained in:
23
Makefile
23
Makefile
@@ -72,15 +72,15 @@ all-indep: $(GENERATED)
|
|||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
|
|
||||||
ENUMER = go tool enumer
|
BUF = env GO=$(GO) ./bin/external-tool buf
|
||||||
GOIMPORTS = go tool goimports
|
ENUMER = go tool enumer
|
||||||
GOTESTSUM = go tool gotestsum
|
GOIMPORTS = go tool goimports
|
||||||
MOCKGEN = go tool mockgen
|
GOTESTSUM = go tool gotestsum
|
||||||
PIGEON = go tool pigeon
|
MOCKGEN = go tool mockgen
|
||||||
REVIVE = go tool revive
|
PIGEON = go tool pigeon
|
||||||
|
REVIVE = go tool revive
|
||||||
STATICCHECK = go tool staticcheck
|
STATICCHECK = go tool staticcheck
|
||||||
WWHRD = go tool wwhrd
|
WWHRD = go tool wwhrd
|
||||||
BUF = env GO=$(GO) ./bin/external-tool buf
|
|
||||||
|
|
||||||
# Generated files
|
# Generated files
|
||||||
|
|
||||||
@@ -197,8 +197,8 @@ test-go-checks: ; $(info $(M) running Go static checks…)
|
|||||||
$Q $(STATICCHECK) -f stylish -checks inherit,-SA1012 $(PKGS)
|
$Q $(STATICCHECK) -f stylish -checks inherit,-SA1012 $(PKGS)
|
||||||
test-go-units: ; $(info $(M) running Go tests$(GOTEST_MORE)…)
|
test-go-units: ; $(info $(M) running Go tests$(GOTEST_MORE)…)
|
||||||
$Q mkdir -p test/go
|
$Q mkdir -p test/go
|
||||||
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) $(GOTESTSUM) \
|
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) \
|
||||||
--junitfile test/go/tests.xml -- \
|
$(GOTESTSUM) --junitfile test/go/tests.xml -- \
|
||||||
-timeout $(TIMEOUT) \
|
-timeout $(TIMEOUT) \
|
||||||
-fullpath \
|
-fullpath \
|
||||||
$(GOTEST_ARGS) $(PKGS)
|
$(GOTEST_ARGS) $(PKGS)
|
||||||
@@ -215,7 +215,8 @@ test-bench: ; $(info $(M) running benchmarks…) @ ## Run Go benchmarks
|
|||||||
$(PKGS) # -benchmem -memprofile test/go/memprofile.out -cpuprofile test/go/cpuprofile.out
|
$(PKGS) # -benchmem -memprofile test/go/memprofile.out -cpuprofile test/go/cpuprofile.out
|
||||||
test-coverage-go: ; $(info $(M) running Go coverage tests…) @ ## Run Go coverage tests
|
test-coverage-go: ; $(info $(M) running Go coverage tests…) @ ## Run Go coverage tests
|
||||||
$Q mkdir -p test/go
|
$Q mkdir -p test/go
|
||||||
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) $(GOTESTSUM) -- \
|
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) \
|
||||||
|
$(GOTESTSUM) -- \
|
||||||
-fullpath \
|
-fullpath \
|
||||||
-coverpkg=$(shell echo $(PKGS) | tr ' ' ',') \
|
-coverpkg=$(shell echo $(PKGS) | tr ' ' ',') \
|
||||||
-covermode=atomic \
|
-covermode=atomic \
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
# a case we don't want to put the dependency in go.mod (which may be considered
|
# a case we don't want to put the dependency in go.mod (which may be considered
|
||||||
# by an anti-pattern for some tools).
|
# by an anti-pattern for some tools).
|
||||||
|
|
||||||
|
# See commit 414d626bf8f2 for an alternative.
|
||||||
|
|
||||||
cmd="$1"
|
cmd="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user