2020-10-07 04:11:36 +00:00
|
|
|
# To lint, install Earthly and run `earth +lint`
|
|
|
|
# This ensures the usage of the same version of golangci-lint
|
|
|
|
|
2021-02-28 05:04:05 +00:00
|
|
|
FROM golangci/golangci-lint:v1.37
|
2020-10-07 04:11:36 +00:00
|
|
|
|
|
|
|
WORKDIR /gpm
|
|
|
|
|
2021-02-28 05:04:05 +00:00
|
|
|
lint-cli:
|
2020-10-07 04:11:36 +00:00
|
|
|
COPY . .
|
2021-02-28 05:04:05 +00:00
|
|
|
RUN golangci-lint run
|
|
|
|
|
|
|
|
lint-lib:
|
|
|
|
COPY ./go-gpm .
|
2020-10-07 04:11:36 +00:00
|
|
|
RUN golangci-lint run
|