Ensure code is generated during CI
This commit is contained in:
		
							parent
							
								
									9c126f5740
								
							
						
					
					
						commit
						eb129a342c
					
				|  | @ -33,6 +33,10 @@ jobs: | ||||||
|         curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter |         curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||||||
|         chmod +x ./cc-test-reporter |         chmod +x ./cc-test-reporter | ||||||
| 
 | 
 | ||||||
|  |     - name: Verify Code Generation | ||||||
|  |       run: | | ||||||
|  |         make verify-generate | ||||||
|  | 
 | ||||||
|     - name: Lint |     - name: Lint | ||||||
|       run: | |       run: | | ||||||
|         make lint |         make lint | ||||||
|  |  | ||||||
							
								
								
									
										8
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										8
									
								
								Makefile
								
								
								
								
							|  | @ -69,6 +69,14 @@ docker-push-all: docker-push | ||||||
| 	docker push $(REGISTRY)/oauth2-proxy:latest-armv6 | 	docker push $(REGISTRY)/oauth2-proxy:latest-armv6 | ||||||
| 	docker push $(REGISTRY)/oauth2-proxy:${VERSION}-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 | .PHONY: test | ||||||
| test: lint | test: lint | ||||||
| 	GO111MODULE=on $(GO) test $(TESTCOVER) -v -race ./... | 	GO111MODULE=on $(GO) test $(TESTCOVER) -v -race ./... | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue