Skip to content

Commit

Permalink
Ensure code is generated during CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Jan 18, 2021
1 parent 9c126f5 commit eb129a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down

0 comments on commit eb129a3

Please sign in to comment.