mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 06:33:06 +08:00
Some checks failed
Mark stale issues and pull requests / main (push) Has been cancelled
Internal - Main - Continuous Integration / ci (push) Has been cancelled
Need fix to Issue / main (push) Has been cancelled
Internal - Main - Continuous Integration / release (push) Has been cancelled
Bumps the actions-dependencies group with 1 update: [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github). Updates `@actions/github` from 6.0.0 to 6.0.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) --- updated-dependencies: - dependency-name: "@actions/github" dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
.PHONY: help
|
|
|
|
help: ## Display help
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
lint: ## Execute linting
|
|
$(call run_linter,)
|
|
|
|
lint-fix: ## Execute linting and fix
|
|
$(call run_linter, \
|
|
-e FIX_JSON_PRETTIER=true \
|
|
-e FIX_YAML_PRETTIER=true \
|
|
-e FIX_MARKDOWN=true \
|
|
-e FIX_MARKDOWN_PRETTIER=true \
|
|
-e FIX_NATURAL_LANGUAGE=true)
|
|
|
|
all: ## Execute all formats and checks
|
|
@npm run all
|
|
$(MAKE) lint-fix
|
|
|
|
define run_linter
|
|
DEFAULT_WORKSPACE="$(CURDIR)"; \
|
|
LINTER_IMAGE="linter:latest"; \
|
|
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
|
|
docker build --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
|
|
docker run \
|
|
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
|
|
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
|
|
-e IGNORE_GITIGNORED_FILES=true \
|
|
-e KUBERNETES_KUBECONFORM_OPTIONS="--schema-location default --schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json'" \
|
|
-e FILTER_REGEX_EXCLUDE=dist/**/* \
|
|
-e VALIDATE_TYPESCRIPT_STANDARD=false \
|
|
-e VALIDATE_TYPESCRIPT_ES=false \
|
|
-e VALIDATE_TYPESCRIPT_PRETTIER=false \
|
|
-e VALIDATE_JAVASCRIPT_ES=false \
|
|
-e VALIDATE_JAVASCRIPT_STANDARD=false \
|
|
$(1) \
|
|
-v $$VOLUME \
|
|
--rm \
|
|
$$LINTER_IMAGE
|
|
endef
|
|
|
|
#############################
|
|
# Argument fix workaround
|
|
#############################
|
|
%:
|
|
@:
|