More CICD fixes again again again again again again again again again again again again again again again again again again again again
All checks were successful
CICD Start / Sanity and Base Decision (pull_request) Successful in 1m1s
All checks were successful
CICD Start / Sanity and Base Decision (pull_request) Successful in 1m1s
Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
This commit is contained in:
@@ -139,6 +139,13 @@ jobs:
|
||||
run: |
|
||||
docker run --rm "${GITEA_REGISTRY}/darkhelm.org/plex-playlist-cicd:${HEAD_SHA}" bash -c "
|
||||
cd /workspace &&
|
||||
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
||||
echo 'No git repository found in /workspace; bootstrapping for pre-commit' &&
|
||||
git config --global user.email 'ci@cicd' &&
|
||||
git config --global user.name 'CICD' &&
|
||||
git init /workspace &&
|
||||
git -C /workspace add -A
|
||||
fi &&
|
||||
pre-commit run ${HOOK} --all-files --show-diff-on-failure
|
||||
"
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ repos:
|
||||
# ESLint with auto-fix for pre-commit (CI uses --no-fix)
|
||||
- id: eslint
|
||||
name: eslint
|
||||
entry: bash -c 'cd frontend && yarn eslint . --fix'
|
||||
entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && corepack yarn eslint . --fix'
|
||||
language: system
|
||||
files: ^frontend/.*\.(js|ts|vue)$
|
||||
pass_filenames: false
|
||||
@@ -86,7 +86,7 @@ repos:
|
||||
# Prettier with auto-format for pre-commit (CI uses --check)
|
||||
- id: prettier
|
||||
name: prettier
|
||||
entry: bash -c 'cd frontend && yarn prettier --write src/'
|
||||
entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && corepack yarn prettier --write src/'
|
||||
language: system
|
||||
files: ^frontend/.*\.(js|ts|vue|json|css|scss|md)$
|
||||
pass_filenames: false
|
||||
@@ -94,7 +94,7 @@ repos:
|
||||
# TypeScript type checking (same as CI)
|
||||
- id: typescript-check
|
||||
name: typescript-check
|
||||
entry: bash -c 'cd frontend && yarn vue-tsc --noEmit'
|
||||
entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && corepack yarn vue-tsc --noEmit'
|
||||
language: system
|
||||
files: ^frontend/.*\.(ts|vue)$
|
||||
pass_filenames: false
|
||||
@@ -102,7 +102,7 @@ repos:
|
||||
# TSDoc linting with auto-fix for pre-commit (CI uses --no-fix)
|
||||
- id: tsdoc-lint
|
||||
name: tsdoc-lint
|
||||
entry: bash -c 'cd frontend && yarn eslint . --ext .ts,.vue --fix'
|
||||
entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && corepack yarn eslint . --ext .ts,.vue --fix'
|
||||
language: system
|
||||
files: ^frontend/.*\.(ts|vue)$
|
||||
pass_filenames: false
|
||||
|
||||
@@ -133,9 +133,9 @@ lint-frontend = {shell = "cd frontend && yarn lint", help = "Lint frontend TypeS
|
||||
# === Parallel Execution for Speed ===
|
||||
lint-parallel = {shell = "poe lint-backend & poe lint-frontend & wait", help = "Run linting in parallel for speed"}
|
||||
# === CI/CD Tasks ===
|
||||
pre-commit-install = {shell = "pre-commit install", help = "Install pre-commit hooks"}
|
||||
pre-commit-run = {shell = "pre-commit run --all-files", help = "Run all pre-commit hooks"}
|
||||
pre-commit-update = {shell = "pre-commit autoupdate", help = "Update pre-commit hook versions"}
|
||||
pre-commit-install = {shell = "pre-commit install --config ../.pre-commit-config.yaml", help = "Install pre-commit hooks"}
|
||||
pre-commit-run = {shell = "pre-commit run --all-files --config ../.pre-commit-config.yaml", help = "Run all pre-commit hooks"}
|
||||
pre-commit-update = {shell = "pre-commit autoupdate --config ../.pre-commit-config.yaml", help = "Update pre-commit hook versions"}
|
||||
# === Quality Gates (Mimics CI Pipeline) ===
|
||||
quality-gate = [
|
||||
{shell = "echo '🔍 Running quality gate checks...'"},
|
||||
|
||||
Reference in New Issue
Block a user