mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-09 14:13:06 +08:00
chore(docs): fix lint issues
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
This commit is contained in:
parent
22b27bf490
commit
59fb88b48c
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -1,9 +1,9 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a bug report
|
||||
title: ''
|
||||
title: ""
|
||||
labels: bug, needs triage
|
||||
assignees: ''
|
||||
assignees: ""
|
||||
---
|
||||
|
||||
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
|
||||
|
||||
6
.github/ISSUE_TEMPLATE/feature_request.md
vendored
6
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@ -1,9 +1,9 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
title: ""
|
||||
labels: ""
|
||||
assignees: ""
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.** A clear and
|
||||
|
||||
26
.github/dependabot.yml
vendored
26
.github/dependabot.yml
vendored
@ -12,6 +12,20 @@ updates:
|
||||
patterns:
|
||||
- "*"
|
||||
|
||||
- package-ecosystem: docker
|
||||
directories:
|
||||
- "/test"
|
||||
- "/"
|
||||
open-pull-requests-limit: 20
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: friday
|
||||
time: "04:00"
|
||||
groups:
|
||||
docker-dependencies:
|
||||
patterns:
|
||||
- "*"
|
||||
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
open-pull-requests-limit: 20
|
||||
@ -26,15 +40,3 @@ updates:
|
||||
- "@actions/*"
|
||||
npm-dev-dependencies:
|
||||
dependency-type: development
|
||||
|
||||
- package-ecosystem: docker
|
||||
directory: "/test"
|
||||
open-pull-requests-limit: 20
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: friday
|
||||
time: "04:00"
|
||||
groups:
|
||||
docker-dependencies:
|
||||
patterns:
|
||||
- "*"
|
||||
|
||||
@ -6,7 +6,7 @@ steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: hoverkraft-tech/compose-action@v1.5.1
|
||||
with:
|
||||
compose-file: './docker/docker-compose.yml'
|
||||
compose-file: "./docker/docker-compose.yml"
|
||||
env:
|
||||
CUSTOM_VARIABLE: 'test'
|
||||
CUSTOM_VARIABLE: "test"
|
||||
```
|
||||
|
||||
2
.github/ghadocs/examples/2_services.md
vendored
2
.github/ghadocs/examples/2_services.md
vendored
@ -9,7 +9,7 @@ steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hoverkraft-tech/compose-action@v1.5.1
|
||||
with:
|
||||
compose-file: './docker/docker-compose.yml'
|
||||
compose-file: "./docker/docker-compose.yml"
|
||||
services: |
|
||||
helloworld2
|
||||
helloworld3
|
||||
|
||||
2
.github/ghadocs/examples/5_compose-flags.md
vendored
2
.github/ghadocs/examples/5_compose-flags.md
vendored
@ -11,7 +11,7 @@ steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hoverkraft-tech/compose-action@v1.5.1
|
||||
with:
|
||||
compose-file: './docker/docker-compose.yml'
|
||||
compose-file: "./docker/docker-compose.yml"
|
||||
services: |
|
||||
helloworld2
|
||||
helloworld3
|
||||
|
||||
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
#checkov:skip=CKV_DOCKER_2: required
|
||||
FROM ghcr.io/super-linter/super-linter:slim-v7
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
USER ${UID}:${GID}
|
||||
|
||||
ENV RUN_LOCAL=true
|
||||
ENV USE_FIND_ALGORITHM=true
|
||||
ENV LOG_LEVEL=WARN
|
||||
ENV LOG_FILE="../logs"
|
||||
42
Makefile
Normal file
42
Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
.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_YAML_PRETTIER=true \
|
||||
-e FIX_MARKDOWN=true \
|
||||
-e FIX_JSON_PRETTIER=true \
|
||||
-e FIX_MARKDOWN_PRETTIER=true \
|
||||
-e FIX_NATURAL_LANGUAGE=true)
|
||||
|
||||
define run_linter
|
||||
DEFAULT_WORKSPACE="$(CURDIR)"; \
|
||||
LINTER_IMAGE="linter:latest"; \
|
||||
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
|
||||
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --tag $$LINTER_IMAGE .; \
|
||||
docker run \
|
||||
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
|
||||
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
|
||||
-e FILTER_REGEX_EXCLUDE=dist/**/* \
|
||||
-e VALIDATE_JSCPD=false \
|
||||
-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
|
||||
#############################
|
||||
%:
|
||||
@:
|
||||
Loading…
x
Reference in New Issue
Block a user