mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-08-31 15:42:51 +08:00
chore: misc DevX improvments
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
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
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
This commit is contained in:
parent
1624a63747
commit
bd3d352542
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Debian",
|
"name": "Debian",
|
||||||
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
|
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/common-utils:2": {
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
||||||
"configureZshAsDefaultShell": true
|
"configureZshAsDefaultShell": true
|
||||||
|
|||||||
9
.github/workflows/__shared-ci.yml
vendored
9
.github/workflows/__shared-ci.yml
vendored
@ -16,15 +16,6 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
security-events: write
|
security-events: write
|
||||||
statuses: write
|
statuses: write
|
||||||
with:
|
|
||||||
linter-env: |
|
|
||||||
FILTER_REGEX_EXCLUDE=dist/**/*|.github/social-preview.svg|.github/logo.svg
|
|
||||||
VALIDATE_JSCPD=false
|
|
||||||
VALIDATE_TYPESCRIPT_STANDARD=false
|
|
||||||
VALIDATE_TYPESCRIPT_ES=false
|
|
||||||
VALIDATE_TYPESCRIPT_PRETTIER=false
|
|
||||||
VALIDATE_JAVASCRIPT_ES=false
|
|
||||||
VALIDATE_JAVASCRIPT_STANDARD=false
|
|
||||||
|
|
||||||
check-nodejs:
|
check-nodejs:
|
||||||
name: Test nodejs
|
name: Test nodejs
|
||||||
|
|||||||
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
@ -3,7 +3,7 @@ name: Greetings
|
|||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
pull_request_target: # zizmor: ignore[dangerous-triggers] metadata-only reusable workflow with explicit write permissions and no checkout
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|||||||
2
.github/workflows/semantic-pull-request.yml
vendored
2
.github/workflows/semantic-pull-request.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: "Pull Request - Semantic Lint"
|
name: "Pull Request - Semantic Lint"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target: # zizmor: ignore[dangerous-triggers] validates PR metadata only through a pinned reusable workflow without checkout
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- edited
|
- edited
|
||||||
|
|||||||
15
Makefile
15
Makefile
@ -3,6 +3,9 @@
|
|||||||
help: ## Display help
|
help: ## Display help
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
|
setup: ## Install dependencies
|
||||||
|
@npm install
|
||||||
|
|
||||||
lint: ## Execute linting
|
lint: ## Execute linting
|
||||||
$(call run_linter,)
|
$(call run_linter,)
|
||||||
|
|
||||||
@ -17,7 +20,7 @@ lint-fix: ## Execute linting and fix
|
|||||||
)
|
)
|
||||||
|
|
||||||
ci: ## Execute all formats and checks
|
ci: ## Execute all formats and checks
|
||||||
@npm install
|
$(MAKE) setup
|
||||||
@npm audit fix || true
|
@npm audit fix || true
|
||||||
@npm run all
|
@npm run all
|
||||||
$(MAKE) lint-fix
|
$(MAKE) lint-fix
|
||||||
@ -26,14 +29,14 @@ define run_linter
|
|||||||
DEFAULT_WORKSPACE="$(CURDIR)"; \
|
DEFAULT_WORKSPACE="$(CURDIR)"; \
|
||||||
LINTER_IMAGE="linter:latest"; \
|
LINTER_IMAGE="linter:latest"; \
|
||||||
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
|
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
|
||||||
docker build --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
|
docker build --platform=linux/amd64 --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
|
||||||
docker run \
|
docker run \
|
||||||
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
|
--platform=linux/amd64 \
|
||||||
-e FILTER_REGEX_EXCLUDE="dist/**/*|.github/social-preview.svg|.github/logo.svg" \
|
|
||||||
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
|
|
||||||
$(1) \
|
|
||||||
-v $$VOLUME \
|
-v $$VOLUME \
|
||||||
--rm \
|
--rm \
|
||||||
|
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
|
||||||
|
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
|
||||||
|
$(1) \
|
||||||
$$LINTER_IMAGE
|
$$LINTER_IMAGE
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
@ -61,6 +61,6 @@
|
|||||||
"version": "20260604100000-migrate-to-vitest"
|
"version": "20260604100000-migrate-to-vitest"
|
||||||
},
|
},
|
||||||
"allowScripts": {
|
"allowScripts": {
|
||||||
"esbuild@0.27.7": true
|
"esbuild@0.28.1": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user