Please, please, please prettier work already!
All checks were successful
CICD Start / Sanity and Base Decision (pull_request) Successful in 1m23s

Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
This commit is contained in:
copilotcoder
2026-06-12 09:01:43 -04:00
parent 05c4c46adb
commit 0f7d52f8a5
2 changed files with 18 additions and 2 deletions

View File

@@ -83,6 +83,7 @@ jobs:
needs: setup
strategy:
fail-fast: false
max-parallel: 6
matrix:
include:
- name: Trailing Whitespace Check
@@ -193,6 +194,15 @@ jobs:
HEAD_SHA: ${{ needs.setup.outputs.head_sha }}
HOOK: ${{ matrix.hook }}
run: |
if [ "${HOOK}" = "prettier" ]; then
echo "=== Host Workspace Debug (prettier) ==="
echo "host_head_sha=${HEAD_SHA}"
git rev-parse --short HEAD || true
cd frontend && corepack yarn prettier --version && corepack yarn prettier --check src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true
sha256sum src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true
cd ..
fi
docker run --rm -e CI=true --entrypoint /bin/sh "${GITEA_REGISTRY}/darkhelm.org/plex-playlist-cicd:${HEAD_SHA}" -c "
export HOME=/tmp/cicd-home && mkdir -p \"$HOME\" &&
echo 'running_hook=${HOOK}' &&
@@ -213,6 +223,12 @@ jobs:
eslint|prettier|tsdoc-lint|typescript-check)
echo 'JS hook detected; ensuring frontend yarn install state exists' &&
cd /workspace/frontend &&
if [ "${HOOK}" = "prettier" ]; then
echo '=== Container Workspace Debug (prettier) ===' &&
corepack yarn prettier --version &&
sha256sum src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true &&
corepack yarn prettier --check src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true
fi &&
if [ ! -f '.yarn/install-state.gz' ]; then
echo 'Missing .yarn/install-state.gz; running yarn install' &&
install_ok=false &&

View File

@@ -152,8 +152,8 @@ RUN echo "Copying source code while preserving installed dependencies..." && \
echo "Copying backend files while preserving .venv..."; \
find "$item" -mindepth 1 -maxdepth 1 ! -name ".venv" -exec cp -rf {} /workspace/backend/ \;; \
elif [ "$basename_item" = "frontend" ] && [ -d "/workspace/frontend/node_modules" ]; then \
echo "Copying frontend files (will regenerate Yarn state after)..."; \
cp -rf "$item"/* /workspace/frontend/; \
echo "Copying frontend files (including dotfiles) while preserving node_modules..."; \
find "$item" -mindepth 1 -maxdepth 1 ! -name "node_modules" -exec cp -rf {} /workspace/frontend/ \;; \
else \
echo "Copying $basename_item..."; \
cp -rf "$item" /workspace/; \