File tree Expand file tree Collapse file tree 4 files changed +7
-37
lines changed
Expand file tree Collapse file tree 4 files changed +7
-37
lines changed Original file line number Diff line number Diff line change 1414 uses : actions/checkout@v4
1515 - name : Check license
1616 run : DOCKER_BUILDKIT=1 make check-license
17- - uses : actions/setup-go@v5
1817 - name : Check deepcopy
1918 run : |
2019 make deepcopy
Original file line number Diff line number Diff line change @@ -31,21 +31,20 @@ fmt: ## Format go files
3131 go fmt ./...
3232
3333.PHONY : deepcopy
34- deepcopy :
35- goderive -h > /dev/null 2>&1 || go install github.com/awalterschulze/goderive@0a721d5b1d722ae6ba0dddefa1200607ca3ece97
36- goderive ./types/...
34+ deepcopy : build-validate-image
35+ docker run --rm -v .:/go/src $(IMAGE_PREFIX ) validate goderive ./types/...
3736
3837.PHONY : build-validate-image
3938build-validate-image :
4039 docker build . -f ci/Dockerfile -t $(IMAGE_PREFIX ) validate
4140
4241.PHONY : lint
4342lint : build-validate-image
44- docker run --rm $(IMAGE_PREFIX ) validate bash -c " golangci-lint run --config ./.golangci.yml ./..."
43+ docker run --rm -v .:/go/src $(IMAGE_PREFIX ) validate golangci-lint run --config ./.golangci.yml ./...
4544
4645.PHONY : check-license
4746check-license : build-validate-image
48- docker run --rm $(IMAGE_PREFIX ) validate bash -c " ./ scripts/validate/fileheader "
47+ docker run --rm -v .:/go/src $(IMAGE_PREFIX ) validate ltag -t scripts/validate/template --excludes " validate dotenv " --check -v
4948
5049.PHONY : setup
5150setup : # # Setup the precommit hook
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM golang:1.23
15+ FROM golang:1.24
1616
1717WORKDIR /go/src
1818
1919ARG GOLANGCILINT_VERSION=v1.64.5
2020RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT_VERSION}
2121RUN go install github.com/kunalkushwaha/ltag@latest && rm -rf /go/src/github.com/kunalkushwaha
22-
23- COPY . .
22+ RUN go install github.com/awalterschulze/goderive@v0.5.1
23+ RUN go install github.com/kunalkushwaha/ltag@v0.2.5
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments