mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 22:53:06 +08:00
Bumps the github-actions-dependencies group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [hoverkraft-tech/ci-github-nodejs](https://github.com/hoverkraft-tech/ci-github-nodejs), [hoverkraft-tech/ci-github-common](https://github.com/hoverkraft-tech/ci-github-common) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token). Updates `actions/checkout` from 4.2.2 to 5.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](11bd71901b...08c6903cd8) Updates `hoverkraft-tech/ci-github-nodejs` from 0.12.0 to 0.13.0 - [Release notes](https://github.com/hoverkraft-tech/ci-github-nodejs/releases) - [Commits](77c905a257...51de90c148) Updates `hoverkraft-tech/ci-github-common` from 0.23.0 to 0.23.1 - [Release notes](https://github.com/hoverkraft-tech/ci-github-common/releases) - [Commits](9a3d71ca9f...6857ef6d10) Updates `actions/create-github-app-token` from 2.0.6 to 2.1.1 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Commits](df432ceedc...a8d6161485) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-nodejs dependency-version: 0.13.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.23.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies - dependency-name: actions/create-github-app-token dependency-version: 2.1.1 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>
46 lines
1.2 KiB
Makefile
46 lines
1.2 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_JAVASCRIPT_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 audit fix
|
|
@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 FILTER_REGEX_EXCLUDE=dist/**/* \
|
|
-e VALIDATE_TYPESCRIPT_ES=false \
|
|
-e VALIDATE_TYPESCRIPT_PRETTIER=false \
|
|
-e VALIDATE_JAVASCRIPT_ES=false \
|
|
$(1) \
|
|
-v $$VOLUME \
|
|
--rm \
|
|
$$LINTER_IMAGE
|
|
endef
|
|
|
|
#############################
|
|
# Argument fix workaround
|
|
#############################
|
|
%:
|
|
@:
|