mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-01-22 05:19:26 +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
|
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…
x
Reference in New Issue
Block a user