Improved CI
parent
c810216273
commit
2aa37165d8
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: "This issue is stale because it has been open for 21 days with no activity."
|
||||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
|
||||
close-issue-message: "Closed because it has been inactive for 14 days since being marked as stale."
|
||||
stale-issue-label: "Status: Stale"
|
||||
only-labels: "Type: Question"
|
||||
exempt-issue-labels: "Status: In Progress"
|
||||
|
|
|
|||
30
Taskfile.yml
30
Taskfile.yml
|
|
@ -3,7 +3,12 @@ version: '3'
|
|||
|
||||
tasks:
|
||||
default:
|
||||
deps: [format, lint, test]
|
||||
cmds:
|
||||
- task: format
|
||||
- task: lint_and_test
|
||||
|
||||
lint_and_test:
|
||||
deps: [lint, test]
|
||||
|
||||
format:
|
||||
cmds:
|
||||
|
|
@ -12,25 +17,26 @@ tasks:
|
|||
- pnpm format
|
||||
|
||||
lint:
|
||||
deps: [lint_yaml]
|
||||
cmds:
|
||||
- ruff format --respect-gitignore --check
|
||||
- ruff check --respect-gitignore
|
||||
- pnpm lint
|
||||
deps: [lint_yaml, lint_ruff_format, lint_ruff_check, lint_pnpm]
|
||||
|
||||
lint_yaml:
|
||||
cmds:
|
||||
- >-
|
||||
find . \( -name node_modules -o -name .venv \) \
|
||||
-prune -o -type f \( -name "*.yaml" -o -name "*.yml" \) -print \
|
||||
| xargs yamllint --no-warnings -c .yamllint.yml
|
||||
| xargs yamllint
|
||||
|
||||
lint_shell:
|
||||
lint_ruff_format:
|
||||
cmds:
|
||||
- >-
|
||||
find . \( -name node_modules -o -name .venv \) \
|
||||
-prune -o -type f -name '*.yml' -print \
|
||||
| xargs shellcheck
|
||||
- ruff format --respect-gitignore --check
|
||||
|
||||
lint_ruff_check:
|
||||
cmds:
|
||||
- ruff check --respect-gitignore
|
||||
|
||||
lint_pnpm:
|
||||
cmds:
|
||||
- pnpm lint
|
||||
|
||||
lint_typos:
|
||||
cmds:
|
||||
|
|
|
|||
|
|
@ -17,12 +17,12 @@
|
|||
"name": "sd-webui-enable-checker",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"format": "run-s format:biome format:markdownlint format:toml",
|
||||
"format": "run-p format:biome format:md format:toml",
|
||||
"format:biome": "biome check --write",
|
||||
"format:markdownlint": "markdownlint -f ./*.md doc/*.md",
|
||||
"format:md": "markdownlint -f ./*.md doc/*.md",
|
||||
"format:toml": "taplo format *.toml",
|
||||
"test": ":",
|
||||
"lint": "run-s lint:biome lint:md lint:pyright lint:toml",
|
||||
"lint": "run-p lint:biome lint:md lint:pyright lint:toml",
|
||||
"lint:biome": "biome check",
|
||||
"lint:md": "npx markdownlint *.md docs/*.md",
|
||||
"lint:pyright": "pyright",
|
||||
|
|
|
|||
Loading…
Reference in New Issue