mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-30 15:02:00 -08:00
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
21 lines
496 B
Makefile
21 lines
496 B
Makefile
define DOCKERFILE_APIDOCS_LINT
|
|
FROM $(NODE_IMAGE)
|
|
RUN yarn global add @redocly/cli@1.0.0-beta.123
|
|
endef
|
|
export DOCKERFILE_APIDOCS_LINT
|
|
|
|
lint-golangci:
|
|
docker run --rm -v $(PWD):/app -w /app \
|
|
$(LINT_IMAGE) \
|
|
golangci-lint run -v
|
|
|
|
lint-mod-tidy:
|
|
go mod tidy
|
|
git diff --exit-code
|
|
|
|
lint-apidocs:
|
|
echo "$$DOCKERFILE_APIDOCS_LINT" | docker build . -f - -t temp
|
|
docker run --rm -v $(PWD)/apidocs:/s -w /s temp \
|
|
sh -c "openapi lint openapi.yaml"
|
|
|
|
lint: lint-golangci lint-mod-tidy lint-apidocs
|