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",
|
||||
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
|
||||
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/common-utils:2": {
|
||||
"configureZshAsDefaultShell": true
|
||||
|
||||
9
.github/workflows/__shared-ci.yml
vendored
9
.github/workflows/__shared-ci.yml
vendored
@ -16,15 +16,6 @@ jobs:
|
||||
pull-requests: write
|
||||
security-events: 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:
|
||||
name: Test nodejs
|
||||
|
||||
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
@ -3,7 +3,7 @@ name: Greetings
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
pull_request_target: # zizmor: ignore[dangerous-triggers] metadata-only reusable workflow with explicit write permissions and no checkout
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
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"
|
||||
|
||||
on:
|
||||
pull_request_target: # zizmor: ignore[dangerous-triggers] validates PR metadata only through a pinned reusable workflow without checkout
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
|
||||
15
Makefile
15
Makefile
@ -3,6 +3,9 @@
|
||||
help: ## Display help
|
||||
@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
|
||||
$(call run_linter,)
|
||||
|
||||
@ -17,7 +20,7 @@ lint-fix: ## Execute linting and fix
|
||||
)
|
||||
|
||||
ci: ## Execute all formats and checks
|
||||
@npm install
|
||||
$(MAKE) setup
|
||||
@npm audit fix || true
|
||||
@npm run all
|
||||
$(MAKE) lint-fix
|
||||
@ -26,14 +29,14 @@ 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 build --platform=linux/amd64 --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) \
|
||||
--platform=linux/amd64 \
|
||||
-v $$VOLUME \
|
||||
--rm \
|
||||
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
|
||||
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
|
||||
$(1) \
|
||||
$$LINTER_IMAGE
|
||||
endef
|
||||
|
||||
|
||||
@ -61,6 +61,6 @@
|
||||
"version": "20260604100000-migrate-to-vitest"
|
||||
},
|
||||
"allowScripts": {
|
||||
"esbuild@0.27.7": true
|
||||
"esbuild@0.28.1": true
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user