mirror of
https://github.com/safing/portmaster
synced 2025-04-18 01:49:09 +00:00
[build] add go-lint earthly target
This commit is contained in:
parent
8f79d8e515
commit
5610c88208
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@ VERSION --arg-scope-and-set --global-cache 0.8
|
|||
ARG --global go_version = 1.22
|
||||
ARG --global node_version = 18
|
||||
ARG --global rust_version = 1.76
|
||||
ARG --global golangci_lint_version = 1.57.1
|
||||
|
||||
ARG --global go_builder_image = "golang:${go_version}-alpine"
|
||||
ARG --global node_builder_image = "node:${node_version}"
|
||||
|
@ -164,6 +165,12 @@ go-test-all:
|
|||
BUILD +go-test --GOARCH="${GOARCH}" --GOOS="${GOOS}" --GOARM="${GOARM}"
|
||||
END
|
||||
|
||||
go-lint:
|
||||
FROM +go-base
|
||||
|
||||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${golangci_lint_version}
|
||||
RUN golangci-lint run -c ./.golangci.yml --timeout 15m --show-stats
|
||||
|
||||
# Builds portmaster-start, portmaster-core, hub and notifier for all supported platforms
|
||||
go-release:
|
||||
FROM ${work_image}
|
||||
|
|
Loading…
Add table
Reference in a new issue