mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-07-03 12:12:50 +08:00
Some checks failed
Internal - Main - Continuous Integration / ci (push) Has been cancelled
Need fix to Issue / main (push) Has been cancelled
Prepare release / release (push) Has been cancelled
Internal - Main - Continuous Integration / prepare-docs (push) Has been cancelled
Internal - Main - Continuous Integration / sync-docs (push) Has been cancelled
Mark stale issues and pull requests / main (push) Has been cancelled
Bumps the github-actions-dependencies group with 6 updates: --- updated-dependencies: - dependency-name: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml dependency-version: 0.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml dependency-version: 0.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common dependency-version: 0.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml dependency-version: 0.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml dependency-version: 0.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml dependency-version: 0.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
44 lines
1.1 KiB
Makefile
44 lines
1.1 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
|
|
@npm run format
|
|
$(call run_linter, \
|
|
-e FIX_MARKDOWN=true \
|
|
-e FIX_NATURAL_LANGUAGE=true \
|
|
-e FIX_SHELL_SHFMT=true \
|
|
-e FIX_BIOME_LINT=true \
|
|
-e FIX_BIOME_FORMAT=true \
|
|
)
|
|
|
|
ci: ## Execute all formats and checks
|
|
@npm install
|
|
@npm audit fix || true
|
|
@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_EXCLUDE="dist/**/*|.github/social-preview.svg|.github/logo.svg" \
|
|
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
|
|
$(1) \
|
|
-v $$VOLUME \
|
|
--rm \
|
|
$$LINTER_IMAGE
|
|
endef
|
|
|
|
#############################
|
|
# Argument fix workaround
|
|
#############################
|
|
%:
|
|
@:
|