mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-01-08 04:03:58 +02:00
Ensure code is generated during CI
This commit is contained in:
parent
9c126f5740
commit
eb129a342c
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -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
|
||||
|
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:${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 ./...
|
||||
|
Loading…
Reference in New Issue
Block a user