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 14
14
uses : actions/checkout@v4
15
15
- name : Check license
16
16
run : DOCKER_BUILDKIT=1 make check-license
17
- - uses : actions/setup-go@v5
18
17
- name : Check deepcopy
19
18
run : |
20
19
make deepcopy
Original file line number Diff line number Diff line change @@ -31,21 +31,20 @@ fmt: ## Format go files
31
31
go fmt ./...
32
32
33
33
.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/...
37
36
38
37
.PHONY : build-validate-image
39
38
build-validate-image :
40
39
docker build . -f ci/Dockerfile -t $(IMAGE_PREFIX ) validate
41
40
42
41
.PHONY : lint
43
42
lint : 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 ./...
45
44
46
45
.PHONY : check-license
47
46
check-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
49
48
50
49
.PHONY : setup
51
50
setup : # # Setup the precommit hook
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM golang:1.23
15
+ FROM golang:1.24
16
16
17
17
WORKDIR /go/src
18
18
19
19
ARG GOLANGCILINT_VERSION=v1.64.5
20
20
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT_VERSION}
21
21
RUN go install github.com/kunalkushwaha/ltag@latest && rm -rf /go/src/github.com/kunalkushwaha
22
-
23
- COPY . .
22
+ RUN go install github.com/awalterschulze/[email protected]
23
+ RUN go install github.com/kunalkushwaha/[email protected]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments