Ensure code is generated during CI

This commit is contained in:
Joel Speed 2020-11-07 16:31:31 +00:00
parent 9c126f5740
commit eb129a342c
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB
2 changed files with 12 additions and 0 deletions

View File

@ -33,6 +33,10 @@ jobs:
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Verify Code Generation
run: |
make verify-generate
- name: Lint
run: |
make lint

View File

@ -69,6 +69,14 @@ docker-push-all: docker-push
docker push $(REGISTRY)/oauth2-proxy:latest-armv6
docker push $(REGISTRY)/oauth2-proxy:${VERSION}-armv6
.PHONY: generate
generate:
go generate ./pkg/...
.PHONY: verify-generate
verify-generate: generate
git diff --exit-code
.PHONY: test
test: lint
GO111MODULE=on $(GO) test $(TESTCOVER) -v -race ./...