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
|
||||
|
||||
ENUMER = go tool enumer
|
||||
GOIMPORTS = go tool goimports
|
||||
GOTESTSUM = go tool gotestsum
|
||||
MOCKGEN = go tool mockgen
|
||||
PIGEON = go tool pigeon
|
||||
REVIVE = go tool revive
|
||||
BUF = env GO=$(GO) ./bin/external-tool buf
|
||||
ENUMER = go tool enumer
|
||||
GOIMPORTS = go tool goimports
|
||||
GOTESTSUM = go tool gotestsum
|
||||
MOCKGEN = go tool mockgen
|
||||
PIGEON = go tool pigeon
|
||||
REVIVE = go tool revive
|
||||
STATICCHECK = go tool staticcheck
|
||||
WWHRD = go tool wwhrd
|
||||
BUF = env GO=$(GO) ./bin/external-tool buf
|
||||
WWHRD = go tool wwhrd
|
||||
|
||||
# Generated files
|
||||
|
||||
@@ -197,8 +197,8 @@ test-go-checks: ; $(info $(M) running Go static checks…)
|
||||
$Q $(STATICCHECK) -f stylish -checks inherit,-SA1012 $(PKGS)
|
||||
test-go-units: ; $(info $(M) running Go tests$(GOTEST_MORE)…)
|
||||
$Q mkdir -p test/go
|
||||
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) $(GOTESTSUM) \
|
||||
--junitfile test/go/tests.xml -- \
|
||||
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) \
|
||||
$(GOTESTSUM) --junitfile test/go/tests.xml -- \
|
||||
-timeout $(TIMEOUT) \
|
||||
-fullpath \
|
||||
$(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
|
||||
test-coverage-go: ; $(info $(M) running Go coverage tests…) @ ## Run Go coverage tests
|
||||
$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 \
|
||||
-coverpkg=$(shell echo $(PKGS) | tr ' ' ',') \
|
||||
-covermode=atomic \
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
# a case we don't want to put the dependency in go.mod (which may be considered
|
||||
# by an anti-pattern for some tools).
|
||||
|
||||
# See commit 414d626bf8f2 for an alternative.
|
||||
|
||||
cmd="$1"
|
||||
shift
|
||||
|
||||
|
||||
Reference in New Issue
Block a user