diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml index b2b67cb..3b90137 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -45,6 +45,8 @@ jobs: version: latest args: -v --timeout 5m skip-cache: true + - name: Check golang modules + run: make check-vendor test: name: Unit test runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 88a362f..77bcdd3 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,14 @@ coverage: test cat $(COVERAGE_FILE) | grep -v "_mock.go" > $(COVERAGE_FILE).no-mocks go tool cover -func=$(COVERAGE_FILE).no-mocks +vendor: + go mod tidy + go mod vendor + go mod verify + +check-vendor: vendor + git diff --quiet HEAD -- go.mod go.sum vendor + build-image: $(DOCKERFILE_DEVEL) $(DOCKER) build \ --progress=plain \