chore: remove generated code from repo
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Dawid Wysokiński 2022-08-05 07:06:11 +02:00
parent 63d5a94bec
commit 0a88439cca
Signed by: Kichiyaki
GPG Key ID: 1ECC5DE481BE5184
2 changed files with 22 additions and 9 deletions

View File

@ -10,7 +10,7 @@ steps:
- name: dockersock
path: /var/run/docker.sock
commands:
- go generate ./...
- make generate
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
volumes:
@ -34,7 +34,7 @@ steps:
- name: check go.mod
image: golang:1.19
commands:
- go generate ./...
- make generate
- go mod tidy
- git diff --exit-code go.mod
@ -54,7 +54,7 @@ steps:
- name: run golangci-lint
image: golangci/golangci-lint:v1.48
commands:
- go generate ./...
- make generate
- golangci-lint run
trigger:

View File

@ -1,11 +1,24 @@
.PHONY: install
install:
# install required tools
.PHONY: install-git-hooks
install-git-hooks:
@echo "Installing git hooks..."
pre-commit install --hook-type pre-commit
pre-commit install --hook-type commit-msg
.PHONY: install-tools
install-tools:
@echo "Installing required tools..."
cd ./internal/tools && go install \
github.com/golangci/golangci-lint/cmd/golangci-lint \
github.com/maxbrunsfeld/counterfeiter/v6
# install git hooks
pre-commit install --hook-type pre-commit
pre-commit install --hook-type commit-msg
.PHONY: install
install: install-tools install-git-hooks
.PHONY: generate
generate: install-tools
@echo "Running go generate..."
go generate ./...
.PHONY: create-job-update-data
create-job-update-data:
kubectl create job --from=cronjob/twhelp-job-update-data-dev twhelp-job-update-data